tests/test-obsolete.t
changeset 135 1a08daef8a53
parent 112 eae9be0ee00e
child 136 915728be8afd
--- a/tests/test-obsolete.t	Fri Feb 17 10:35:46 2012 +0100
+++ b/tests/test-obsolete.t	Fri Feb 17 17:53:00 2012 +0100
@@ -4,6 +4,8 @@
   > allow_push = *
   > [phases]
   > publish=False
+  > [obsolete]
+  > secret-unstable=no
   > [extensions]
   > EOF
   $ echo "obsolete=$(echo $(dirname $TESTDIR))/hgext/obsolete.py" >> $HGRCPATH
@@ -17,7 +19,7 @@
   $ hg init local
   $ cd local
   $ mkcommit a # 0
-  $ hg pull -q . #hg published 0
+  $ hg phase -p .
   $ mkcommit b # 1
   $ mkcommit c # 2
   $ hg up 1
@@ -76,6 +78,7 @@
 Test communication of obsolete relation with a compatible client
 
   $ hg init ../other-new
+  $ hg phase --draft 'secret() - extinct()' # until we fix exclusion
   $ hg push --traceback ../other-new
   pushing to ../other-new
   searching for changes
@@ -148,10 +151,10 @@
   adding changesets
   adding manifests
   adding file changes
-  added 2 changesets with 2 changes to 2 files (+2 heads)
+  added 1 changesets with 1 changes to 1 files (+1 heads)
   (run 'hg heads .' to see heads, 'hg merge' to merge)
   $ qlog -R ../other-new
-  7
+  6
   - 909a0fb57e5d
   3
   - 725c380fe99b
@@ -196,16 +199,16 @@
   adding changesets
   adding manifests
   adding file changes
-  added 8 changesets with 8 changes to 8 files (+4 heads)
+  added 5 changesets with 5 changes to 5 files (+1 heads)
   updating to branch default
   4 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
   $ qlog -R ../cloned
-  7
+  4
   - 909a0fb57e5d
-  4
+  3
   - 725c380fe99b
-  3
+  2
   - 0d3f46688ccc
   1
   - 7c3bad9141dc
@@ -229,7 +232,7 @@
   (run 'hg heads .' to see heads, 'hg merge' to merge)
 
   $ qlog -R ../other-new
-  8
+  7
   - 159dfc9fa5d3
   3
   - 725c380fe99b
@@ -240,9 +243,9 @@
   0
   - 1f0dee641bb7
   $ hg -R ../other-new rollback
-  repository tip rolled back to revision 7 (undo pull)
+  repository tip rolled back to revision 6 (undo pull)
   $ qlog -R ../other-new
-  7
+  6
   - 909a0fb57e5d
   3
   - 725c380fe99b