hgext/notify.py
changeset 35954 386c1e45e671
parent 35888 c8e2d6ed1f9e
child 36607 c6061cadb400
equal deleted inserted replaced
35953:64f4a6808704 35954:386c1e45e671
   256         if not template:
   256         if not template:
   257             mapfile = self.ui.config('notify', 'style')
   257             mapfile = self.ui.config('notify', 'style')
   258         if not mapfile and not template:
   258         if not mapfile and not template:
   259             template = deftemplates.get(hooktype) or single_template
   259             template = deftemplates.get(hooktype) or single_template
   260         spec = logcmdutil.templatespec(template, mapfile)
   260         spec = logcmdutil.templatespec(template, mapfile)
   261         self.t = logcmdutil.changesettemplater(self.ui, self.repo, spec,
   261         self.t = logcmdutil.changesettemplater(self.ui, self.repo, spec)
   262                                                False, None, False)
       
   263 
   262 
   264     def strip(self, path):
   263     def strip(self, path):
   265         '''strip leading slashes from local path, turn into web-safe path.'''
   264         '''strip leading slashes from local path, turn into web-safe path.'''
   266 
   265 
   267         path = util.pconvert(path)
   266         path = util.pconvert(path)