hgext3rd/topic/discovery.py
branchstable
changeset 4541 7e98faf278d6
parent 4540 22cde12d9467
child 4542 f5127bfc1588
equal deleted inserted replaced
4540:22cde12d9467 4541:7e98faf278d6
   121         repo.__class__ = oldrepocls
   121         repo.__class__ = oldrepocls
   122         if remotebranchmap is not None:
   122         if remotebranchmap is not None:
   123             remote.branchmap = origremotebranchmap
   123             remote.branchmap = origremotebranchmap
   124 
   124 
   125 def wireprotobranchmap(orig, repo, proto):
   125 def wireprotobranchmap(orig, repo, proto):
       
   126     if not common.hastopicext(repo):
       
   127         return orig(repo, proto)
   126     oldrepo = repo.__class__
   128     oldrepo = repo.__class__
   127     try:
   129     try:
   128         class repocls(repo.__class__):
   130         class repocls(repo.__class__):
   129             def branchmap(self):
   131             def branchmap(self):
   130                 usetopic = not self.publishing()
   132                 usetopic = not self.publishing()