Patchwork D7998: merge: replace a repo.lookup('.') by more typical repo['.'].node()

login
register
mail settings
Submitter phabricator
Date Jan. 26, 2020, 12:27 a.m.
Message ID <d96be78f12a12af6bda258d7a5e9eeee@localhost.localdomain>
Download mbox | patch
Permalink /patch/44671/
State Not Applicable
Headers show

Comments

phabricator - Jan. 26, 2020, 12:27 a.m.
Closed by commit rHG293cab97a766: merge: replace a repo.lookup(&#039;.&#039;) by more typical repo[&#039;.&#039;].node() (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7998?vs=19604&id=19617

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7998/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7998

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4881,7 +4881,7 @@ 
 
     if opts.get(b'preview'):
         # find nodes that are ancestors of p2 but not of p1
-        p1 = repo.lookup(b'.')
+        p1 = repo[b'.'].node()
         p2 = node
         nodes = repo.changelog.findmissing(common=[p1], heads=[p2])