511 comparing against working dir.''' |
511 comparing against working dir.''' |
512 if node2 is not None: |
512 if node2 is not None: |
513 kwt.matcher = util.never |
513 kwt.matcher = util.never |
514 elif node1 is not None and node1 != repo.changectx().node(): |
514 elif node1 is not None and node1 != repo.changectx().node(): |
515 kwt.restrict = True |
515 kwt.restrict = True |
516 patch_diff(repo, node1, node2, files, match, fp, changes, opts) |
516 patch_diff(repo, node1, node2, match, fp, changes, opts) |
517 |
517 |
518 def kwweb_changeset(web, req, tmpl): |
518 def kwweb_changeset(web, req, tmpl): |
519 '''Wraps webcommands.changeset turning off keyword expansion.''' |
519 '''Wraps webcommands.changeset turning off keyword expansion.''' |
520 kwt.matcher = util.never |
520 kwt.matcher = util.never |
521 return webcommands_changeset(web, req, tmpl) |
521 return webcommands_changeset(web, req, tmpl) |