hgext3rd/topic/__init__.py
changeset 4804 079dbf36e884
parent 4801 16c1398b0063
child 4807 ea8da5aa23c6
equal deleted inserted replaced
4803:88472e743c64 4804:079dbf36e884
   240                       default=None,
   240                       default=None,
   241             )
   241             )
   242 
   242 
   243 # we need to do old style declaration for <= 4.5
   243 # we need to do old style declaration for <= 4.5
   244 templatekeyword = registrar.templatekeyword()
   244 templatekeyword = registrar.templatekeyword()
   245 post45template = 'requires=' in templatekeyword.__doc__
   245 post45template = r'requires=' in templatekeyword.__doc__
   246 
   246 
   247 def _contexttopic(self, force=False):
   247 def _contexttopic(self, force=False):
   248     if not (force or self.mutable()):
   248     if not (force or self.mutable()):
   249         return ''
   249         return ''
   250     return self.extra().get(constants.extrakey, '')
   250     return self.extra().get(constants.extrakey, '')