[PATCH] tests: run check-commit on secret changes too

Matt Mackall mpm at selenic.com
Mon Jan 11 17:48:04 UTC 2016


# HG changeset patch
# User Matt Mackall <mpm at selenic.com>
# Date 1452533728 21600
#      Mon Jan 11 11:35:28 2016 -0600
# Node ID 4647cfbfde40fb18534cc1df4859a16d231bbdd9
# Parent  5b216b4a17ab760048e19d9d795810a49c7f7c4a
tests: run check-commit on secret changes too

diff -r 5b216b4a17ab -r 4647cfbfde40 tests/test-check-commit.t
--- a/tests/test-check-commit.t	Fri Jan 08 12:07:15 2016 -0600
+++ b/tests/test-check-commit.t	Mon Jan 11 11:35:28 2016 -0600
@@ -11,7 +11,7 @@
 
   $ cd $TESTDIR/..
 
-  $ for node in `hg log --rev 'draft() and ::.' --template '{node|short}\n'`; do
+  $ for node in `hg log --rev 'not public() and ::.' --template '{node|short}\n'`; do
   >    hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out
   >    if [ $? -ne 0 ]; then
   >        echo "Revision $node does not comply to rules"


More information about the Mercurial-devel mailing list