Patchwork D3055: localrepo: use revsymbol() in lookup()

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 11:36 p.m.
Message ID <f77471905a1fd5512e7bb8fd4efc6fce@localhost.localdomain>
Download mbox | patch
Permalink /patch/30228/
State Not Applicable
Headers show

Comments

phabricator - April 3, 2018, 11:36 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0a1fb171dc1d: localrepo: use revsymbol() in lookup() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3055?vs=7586&id=7595

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

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1021,7 +1021,7 @@ 
                 pass
 
     def lookup(self, key):
-        return self[key].node()
+        return scmutil.revsymbol(self, key).node()
 
     def lookupbranch(self, key, remote=None):
         repo = remote or self