hgkw/keyword.py
changeset 381 17e94f77de6a
parent 378 0683aaf458d8
child 382 e8d4a289f8e4
--- a/hgkw/keyword.py	Wed Feb 06 17:25:37 2008 +0100
+++ b/hgkw/keyword.py	Wed Feb 06 18:46:49 2008 +0100
@@ -90,7 +90,7 @@
 
 # hg commands that do not act on keywords
 nokwcommands = ('add addremove bundle copy export grep identify incoming init'
-                ' log outgoing push remove rename rollback tip convert')
+                ' log outgoing push remove rename rollback tip convert email')
 
 # hg commands that trigger expansion only when writing to working dir,
 # not when reading filelog, and unexpand when reading from working dir
@@ -412,7 +412,7 @@
     This is done for local repos only, and only if there are
     files configured at all for keyword substitution.'''
 
-    if not repo.local():
+    if not repo.local() or repo.root.endswith('/.hg/patches'):
         return
 
     hgcmd, func, args, opts, cmdopts = dispatch._parse(ui, sys.argv[1:])