# HG changeset patch # User Sean Farley # Date 1458422145 25200 # Node ID ea4675c7a028cd68a15033e63c18f4497fc0a6fc # Parent 535d975d3886d2711ea2345993029c320c2f25d4 init: whitespace fixups diff -r 535d975d3886 -r ea4675c7a028 hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Sat Mar 19 14:09:59 2016 -0700 +++ b/hgext3rd/topic/__init__.py Sat Mar 19 14:15:45 2016 -0700 @@ -93,7 +93,7 @@ oldbranchcache = branchmap.branchcache oldfilename = branchmap._filename oldread = branchmap.read - oldcaches = getattr(repo, '_branchcaches', {}) + oldcaches = getattr(repo, '_branchcaches', {}) try: branchmap.branchcache = topicmap.topiccache branchmap._filename = topicmap._filename @@ -184,7 +184,6 @@ peer.__class__ = topicpeer return peer - repo.__class__ = topicrepo if util.safehasattr(repo, 'names'): repo.names.addnamespace(namespaces.namespace( @@ -335,7 +334,7 @@ def _exporttopic(seq, ctx): topic = ctx.topic() if topic: - return 'EXP-Topic %s' % topic + return 'EXP-Topic %s' % topic return None def _importtopic(repo, patchdata, extra, opts): @@ -354,7 +353,8 @@ extensions.wrapfunction(wireproto, 'branchmap', discovery.wireprotobranchmap) extensions.wrapfunction(wireproto, '_capabilities', discovery.wireprotocaps) extensions.wrapfunction(bundle2, 'handlecheckheads', discovery.handlecheckheads) -bundle2.handlecheckheads.params = frozenset() # we need a proper wrape b2 part stuff +# we need a proper wrape b2 part stuff +bundle2.handlecheckheads.params = frozenset() bundle2.parthandlermapping['check:heads'] = bundle2.handlecheckheads extensions.wrapfunction(exchange, '_pushb2phases', discovery._pushb2phases) extensions.wrapfunction(changegroup.cg1unpacker, 'apply', cgapply)