Patchwork D3080: localrepo: use revsymbol in lookupbranch() too

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 12:50 a.m.
Message ID <2a3cf7d4646ef421f79b6be034f6314f@localhost.localdomain>
Download mbox | patch
Permalink /patch/30310/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2018, 12:50 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG92171562c7f3: localrepo: use revsymbol in lookupbranch() too (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3080?vs=7654&id=7666

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

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1023,7 +1023,7 @@ 
         if key in self.branchmap():
             return key
 
-        return self[key].branch()
+        return scmutil.revsymbol(self, key).branch()
 
     def known(self, nodes):
         cl = self.changelog