hgext3rd/topic/__init__.py
changeset 1942 8815e799d865
parent 1941 7eb737b7a902
child 1943 cd56f4d8b5a3
equal deleted inserted replaced
1941:7eb737b7a902 1942:8815e799d865
    90         return [t]
    90         return [t]
    91     return []
    91     return []
    92 
    92 
    93 def uisetup(ui):
    93 def uisetup(ui):
    94     destination.modsetup(ui)
    94     destination.modsetup(ui)
       
    95     topicrevset.modsetup()
    95 
    96 
    96 @contextlib.contextmanager
    97 @contextlib.contextmanager
    97 def usetopicmap(repo):
    98 def usetopicmap(repo):
    98     """use awful monkey patching to update the topic cache"""
    99     """use awful monkey patching to update the topic cache"""
    99     oldbranchcache = branchmap.branchcache
   100     oldbranchcache = branchmap.branchcache
   363 bundle2.handlecheckheads.params = frozenset()
   364 bundle2.handlecheckheads.params = frozenset()
   364 bundle2.parthandlermapping['check:heads'] = bundle2.handlecheckheads
   365 bundle2.parthandlermapping['check:heads'] = bundle2.handlecheckheads
   365 extensions.wrapfunction(exchange, '_pushb2phases', discovery._pushb2phases)
   366 extensions.wrapfunction(exchange, '_pushb2phases', discovery._pushb2phases)
   366 extensions.wrapfunction(changegroup.cg1unpacker, 'apply', cgapply)
   367 extensions.wrapfunction(changegroup.cg1unpacker, 'apply', cgapply)
   367 exchange.b2partsgenmapping['phase'] = exchange._pushb2phases
   368 exchange.b2partsgenmapping['phase'] = exchange._pushb2phases
   368 topicrevset.modsetup()
       
   369 cmdutil.summaryhooks.add('topic', summaryhook)
   369 cmdutil.summaryhooks.add('topic', summaryhook)
   370 
   370 
   371 if util.safehasattr(cmdutil, 'extraexport'):
   371 if util.safehasattr(cmdutil, 'extraexport'):
   372     cmdutil.extraexport.append('topic')
   372     cmdutil.extraexport.append('topic')
   373     cmdutil.extraexportmap['topic'] = _exporttopic
   373     cmdutil.extraexportmap['topic'] = _exporttopic