keyword: remove "identify" and "remove" from nokwcommands
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Thu, 21 Feb 2008 16:22:31 -0300
changeset 6157 09b00faa8670
parent 6156 ba0790061ba7
child 6158 23ffe82615d8
keyword: remove "identify" and "remove" from nokwcommands These two commands care about the list of modified files returned by repo.status and we may need to do a full content comparison to populate that list.
hgext/keyword.py
tests/test-keyword
--- a/hgext/keyword.py	Thu Feb 21 16:22:31 2008 -0300
+++ b/hgext/keyword.py	Thu Feb 21 16:22:31 2008 -0300
@@ -88,8 +88,8 @@
 commands.optionalrepo += ' kwdemo'
 
 # 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'
+nokwcommands = ('add addremove bundle copy export grep incoming init'
+                ' log outgoing push rename rollback tip'
                 ' convert email glog')
 
 # hg commands that trigger expansion only when writing to working dir,
--- a/tests/test-keyword	Thu Feb 21 16:22:31 2008 -0300
+++ b/tests/test-keyword	Thu Feb 21 16:22:31 2008 -0300
@@ -67,6 +67,7 @@
 echo % status
 hg status
 echo % identify
+hg debugrebuildstate
 hg --quiet identify
 echo % cat
 cat a b
@@ -216,6 +217,7 @@
 echo
 
 echo % remove
+hg debugrebuildstate
 hg remove a
 hg --debug commit -m rma
 echo % status