hgext/hgcia.py
changeset 24987 fd7287f0b43c
parent 24306 6ddc86eedc3b
child 25186 80c5b2666a96
equal deleted inserted replaced
24986:fb9b7b937b3e 24987:fd7287f0b43c
    41   baseurl = http://server/path/to/repo
    41   baseurl = http://server/path/to/repo
    42 """
    42 """
    43 
    43 
    44 from mercurial.i18n import _
    44 from mercurial.i18n import _
    45 from mercurial.node import bin, short
    45 from mercurial.node import bin, short
    46 from mercurial import cmdutil, patch, templater, util, mail
    46 from mercurial import cmdutil, patch, util, mail
    47 import email.Parser
    47 import email.Parser
    48 
    48 
    49 import socket, xmlrpclib
    49 import socket, xmlrpclib
    50 from xml.sax import saxutils
    50 from xml.sax import saxutils
    51 testedwith = 'internal'
    51 testedwith = 'internal'
   204         if not template:
   204         if not template:
   205             if self.diffstat:
   205             if self.diffstat:
   206                 template = self.dstemplate
   206                 template = self.dstemplate
   207             else:
   207             else:
   208                 template = self.deftemplate
   208                 template = self.deftemplate
   209         template = templater.parsestring(template, quoted=False)
       
   210         t = cmdutil.changeset_templater(self.ui, self.repo, False, None,
   209         t = cmdutil.changeset_templater(self.ui, self.repo, False, None,
   211                                         template, style, False)
   210                                         template, style, False)
   212         self.templater = t
   211         self.templater = t
   213 
   212 
   214     def strip(self, path):
   213     def strip(self, path):