equal
deleted
inserted
replaced
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() |