changeset 206:80f602e6ae8a

test: graphlog honor --hidden honor in 2.2
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Mon, 23 Apr 2012 15:03:33 +0200
parents 7ba30bd95a88
children 15a89eeff66f
files tests/test-obsolete.t
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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