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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sat Jan 25 19:27:18 EST 2020


Closed by commit rHG293cab97a766: merge: replace a repo.lookup('.') by more typical repo['.'].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

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])
 



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


More information about the Mercurial-devel mailing list