hgext3rd/topic/__init__.py
changeset 1969 a604423c1500
parent 1966 e67c526c0a25
child 1971 ec4924ea8bc6
equal deleted inserted replaced
1968:08cbfeb15a1a 1969:a604423c1500
   318             extra[constants.extrakey] = ctx.topic()
   318             extra[constants.extrakey] = ctx.topic()
   319 
   319 
   320     def newmakeextrafn(orig, copiers):
   320     def newmakeextrafn(orig, copiers):
   321         return orig(copiers + [savetopic])
   321         return orig(copiers + [savetopic])
   322 
   322 
   323     rebase = extensions.find("rebase")
   323     try:
   324     extensions.wrapfunction(rebase, '_makeextrafn', newmakeextrafn)
   324         rebase = extensions.find("rebase")
       
   325         extensions.wrapfunction(rebase, '_makeextrafn', newmakeextrafn)
       
   326     except KeyError:
       
   327         pass
   325 
   328 
   326 ## preserve topic during import/export
   329 ## preserve topic during import/export
   327 
   330 
   328 def _exporttopic(seq, ctx):
   331 def _exporttopic(seq, ctx):
   329     topic = ctx.topic()
   332     topic = ctx.topic()