hgkw/keyword.py
changeset 410 64cd77f6f7f1
parent 408 33e5b8a51e47
child 413 1b6610abf538
equal deleted inserted replaced
409:6e2293f7b9f7 410:64cd77f6f7f1
   122 def _kw_diff(repo, node1=None, node2=None, files=None, match=util.always,
   122 def _kw_diff(repo, node1=None, node2=None, files=None, match=util.always,
   123              fp=None, changes=None, opts=None):
   123              fp=None, changes=None, opts=None):
   124     # only expand if comparing against working dir
   124     # only expand if comparing against working dir
   125     if node2 is not None:
   125     if node2 is not None:
   126         kwx['templater'].matcher = util.never
   126         kwx['templater'].matcher = util.never
   127     if node1 is not None and node1 != repo.changectx().node():
   127     elif node1 is not None and node1 != repo.changectx().node():
   128         kwx['templater'].restrict = True
   128         kwx['templater'].restrict = True
   129     _patch_diff(repo, node1=node1, node2=node2, files=files, match=match,
   129     _patch_diff(repo, node1=node1, node2=node2, files=files, match=match,
   130                 fp=fp, changes=changes, opts=opts)
   130                 fp=fp, changes=changes, opts=opts)
   131 
   131 
   132 def _kwweb_changeset(web, req, tmpl):
   132 def _kwweb_changeset(web, req, tmpl):