Mercurial > evolve
diff tests/test-obsolete.t @ 217:786eb34d93ea
obsolete: refuse to push unstable changeset without -f
We do not alter phase of suspended and unstable changeset anymore. But push
refuse to push them without force.
The extinct part of the history stay secret for simplicity shake.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Tue, 24 Apr 2012 16:30:58 +0200 |
parents | 0eceb5a48485 |
children | ace5608350b6 |
line wrap: on
line diff
--- a/tests/test-obsolete.t Tue Apr 24 15:57:48 2012 +0200 +++ b/tests/test-obsolete.t Tue Apr 24 16:30:58 2012 +0200 @@ -4,8 +4,6 @@ > allow_push = * > [phases] > publish=False - > [obsolete] - > secret-unstable=no > [alias] > odiff=diff --rev 'limit(obsparents(.),1)' --rev . > [extensions] @@ -117,7 +115,13 @@ $ hg init ../other-new $ hg phase --draft 'secret() - extinct()' # until we fix exclusion - $ hg push --traceback ../other-new + $ hg push ../other-new + pushing to ../other-new + searching for changes + abort: Trying to push unstable changeset: a7a6f2b5d8a5! + (use 'hg stabilize' to get a stable history (or --force to proceed)) + [255] + $ hg push -f ../other-new pushing to ../other-new searching for changes adding changesets @@ -163,7 +167,13 @@ $ qlog -r 'obsolete()' 3 - 0d3f46688ccc - $ hg push ../other-new -f # XXX should not have to use -f + $ hg push ../other-new + pushing to ../other-new + searching for changes + abort: Trying to push unstable changeset: 95de7fc6918d! + (use 'hg stabilize' to get a stable history (or --force to proceed)) + [255] + $ hg push ../other-new -f # use f because there is unstability pushing to ../other-new searching for changes adding changesets @@ -228,6 +238,12 @@ $ hg push ../other-old pushing to ../other-old searching for changes + abort: Trying to push unstable changeset: 909a0fb57e5d! + (use 'hg stabilize' to get a stable history (or --force to proceed)) + [255] + $ hg push -f ../other-old + pushing to ../other-old + searching for changes adding changesets adding manifests adding file changes