Mercurial > evolve
comparison hgext3rd/topic/discovery.py @ 1920:2a28bd7eab31
discovery: removed unused oldgetitem
author | Sean Farley <sean@farley.io> |
---|---|
date | Mon, 21 Mar 2016 21:25:04 -0700 |
parents | f52c02bf47b7 |
children | 4898296d7d25 |
comparison
equal
deleted
inserted
replaced
1919:769b2b271422 | 1920:2a28bd7eab31 |
---|---|
8 def _headssummary(orig, repo, remote, outgoing): | 8 def _headssummary(orig, repo, remote, outgoing): |
9 publishing = ('phases' not in remote.listkeys('namespaces') | 9 publishing = ('phases' not in remote.listkeys('namespaces') |
10 or bool(remote.listkeys('phases').get('publishing', False))) | 10 or bool(remote.listkeys('phases').get('publishing', False))) |
11 if publishing or not remote.capable('topics'): | 11 if publishing or not remote.capable('topics'): |
12 return orig(repo, remote, outgoing) | 12 return orig(repo, remote, outgoing) |
13 oldgetitem = repo.__getitem__ | |
14 oldrepo = repo.__class__ | 13 oldrepo = repo.__class__ |
15 oldbranchcache = branchmap.branchcache | 14 oldbranchcache = branchmap.branchcache |
16 oldfilename = branchmap._filename | 15 oldfilename = branchmap._filename |
17 try: | 16 try: |
18 class repocls(repo.__class__): | 17 class repocls(repo.__class__): |