Mercurial > evolve
comparison hgext3rd/topic/discovery.py @ 2567:6eb87513024b
fix: fix _headssummary call to orig
65cf338258d2 one of two orig call wasn't compatible with mercurial version <
4.3, fix it.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 15 Jun 2017 13:26:05 +0200 |
parents | 65cf338258d2 |
children | 13313d0cab71 |
comparison
equal
deleted
inserted
replaced
2566:f6821f6bf73c | 2567:6eb87513024b |
---|---|
30 raise TypeError(msg % len(args)) | 30 raise TypeError(msg % len(args)) |
31 | 31 |
32 publishing = ('phases' not in remote.listkeys('namespaces') | 32 publishing = ('phases' not in remote.listkeys('namespaces') |
33 or bool(remote.listkeys('phases').get('publishing', False))) | 33 or bool(remote.listkeys('phases').get('publishing', False))) |
34 if publishing or not remote.capable('topics'): | 34 if publishing or not remote.capable('topics'): |
35 return orig(pushop) | 35 return orig(*args) |
36 oldrepo = repo.__class__ | 36 oldrepo = repo.__class__ |
37 oldbranchcache = branchmap.branchcache | 37 oldbranchcache = branchmap.branchcache |
38 oldfilename = branchmap._filename | 38 oldfilename = branchmap._filename |
39 try: | 39 try: |
40 class repocls(repo.__class__): | 40 class repocls(repo.__class__): |