test: graphlog honor --hidden honor in 2.2
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 23 Apr 2012 15:03:33 +0200
changeset 206 80f602e6ae8a
parent 205 7ba30bd95a88
child 207 15a89eeff66f
test: graphlog honor --hidden honor in 2.2
tests/test-obsolete.t
--- a/tests/test-obsolete.t	Mon Apr 23 14:54:06 2012 +0200
+++ b/tests/test-obsolete.t	Mon Apr 23 15:03:33 2012 +0200
@@ -9,6 +9,7 @@
   > [alias]
   > odiff=diff --rev 'limit(obsparents(.),1)' --rev .
   > [extensions]
+  > hgext.graphlog=
   > EOF
   $ echo "obsolete=$(echo $(dirname $TESTDIR))/hgext/obsolete.py" >> $HGRCPATH
   $ mkcommit() {
@@ -341,7 +342,7 @@
 
 check rebase compat
 
-  $ hg --config extensions.graphlog= glog -r 'not extinct()'  --template='{rev} - {node|short}\n'
+  $ hg glog -r 'not extinct()'  --template='{rev} - {node|short}\n'
   o  8 - 159dfc9fa5d3
   |
   | o  4 - 725c380fe99b
@@ -353,7 +354,7 @@
   o  0 - 1f0dee641bb7
   
 
-  $ hg --config extensions.graphlog= glog  --template='{rev} - {node|short}\n'
+  $ hg glog  --template='{rev} - {node|short}\n' `(hg --version | grep -q 'version 2.1') ||  echo '--hidden'`
   o  9 - 83b5778897ad
   
   o  8 - 159dfc9fa5d3