This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfdd22bf6398f: localrepo: drop "remote" argument 
from lookupbranch() (API) (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3079?vs=7653&id=7665

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

AFFECTED FILES
  mercurial/localrepo.py
  mercurial/repository.py

CHANGE DETAILS

diff --git a/mercurial/repository.py b/mercurial/repository.py
--- a/mercurial/repository.py
+++ b/mercurial/repository.py
@@ -446,7 +446,7 @@
     def lookup(key):
         """Resolve the node for a revision."""
 
-    def lookupbranch(key, remote=None):
+    def lookupbranch(key):
         """Look up the branch name of the given revision or branch name."""
 
     def known(nodes):
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1019,13 +1019,11 @@
     def lookup(self, key):
         return scmutil.revsymbol(self, key).node()
 
-    def lookupbranch(self, key, remote=None):
-        repo = remote or self
-        if key in repo.branchmap():
+    def lookupbranch(self, key):
+        if key in self.branchmap():
             return key
 
-        repo = (remote and remote.local()) and remote or self
-        return repo[key].branch()
+        return self[key].branch()
 
     def known(self, nodes):
         cl = self.changelog



To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to