[PATCH] keyword: add verify to nokwcommands after refactor in e79a8f36c2a5

Christian Ebert blacktrash at gmx.net
Wed Jul 30 09:36:08 CDT 2008


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1217427998 -7200
# Node ID 6c674716a60cf2d05f391efd8bdb511460de6710
# Parent  1a9577da9d02a386526c6a6791d6d57f56b28126
keyword: add verify to nokwcommands after refactor in e79a8f36c2a5

Add test as well.
Thanks to Guy Brand for spotting this.

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -89,7 +89,7 @@
 
 # hg commands that do not act on keywords
 nokwcommands = ('add addremove annotate bundle copy export grep incoming init'
-                ' log outgoing push rename rollback tip'
+                ' log outgoing push rename rollback tip verify'
                 ' convert email glog')
 
 # hg commands that trigger expansion only when writing to working dir,
diff --git a/tests/test-keyword b/tests/test-keyword
--- a/tests/test-keyword
+++ b/tests/test-keyword
@@ -208,6 +208,8 @@
 rm log
 echo % status
 hg status
+echo % verify
+hg verify
 
 echo % cat
 cat a b
diff --git a/tests/test-keyword.out b/tests/test-keyword.out
--- a/tests/test-keyword.out
+++ b/tests/test-keyword.out
@@ -281,6 +281,12 @@
 a
 overwriting a expanding keywords
 % status
+% verify
+checking changesets
+checking manifests
+crosschecking files in changesets and manifests
+checking files
+3 files, 3 changesets, 4 total revisions
 % cat
 expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $
 do not process $Id:


More information about the Mercurial-devel mailing list