hgext/keyword.py
changeset 6117 c74f1d9092f8
parent 6115 8121e9d7bfd2
child 6157 09b00faa8670
--- a/hgext/keyword.py	Fri Feb 15 18:36:49 2008 +0100
+++ b/hgext/keyword.py	Fri Feb 15 18:37:00 2008 +0100
@@ -123,7 +123,7 @@
     comparing against working dir.'''
     if node2 is not None:
         kwtools['templater'].matcher = util.never
-    if node1 is not None and node1 != repo.changectx().node():
+    elif node1 is not None and node1 != repo.changectx().node():
         kwtools['templater'].restrict = True
     _patch_diff(repo, node1=node1, node2=node2, files=files, match=match,
                 fp=fp, changes=changes, opts=opts)
@@ -458,7 +458,7 @@
     files configured at all for keyword substitution.'''
 
     try:
-        if (not repo.local() or kwtools['hgcmd'] in nokwcommands.split() 
+        if (not repo.local() or kwtools['hgcmd'] in nokwcommands.split()
             or '.hg' in util.splitpath(repo.root)
             or repo._url.startswith('bundle:')):
             return