Mercurial > hg
diff tests/test-obsolete-checkheads.t @ 17834:743d04dd48ec
push: refuse to push bumped changeset
This applies the same logic as used for `obsolete` and `unstable` changesets.
Refuse to push them without force.
We'll probably want to factor this logic with two new functions
`pctx.troubled()` and `ctx.troubles()`. But I'm waiting for the third
"trouble" to make it into core.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Fri, 19 Oct 2012 00:50:12 +0200 |
parents | 6d0efc802856 |
children | bfc6ed892349 |
line wrap: on
line diff
--- a/tests/test-obsolete-checkheads.t Fri Oct 19 00:46:39 2012 +0200 +++ b/tests/test-obsolete-checkheads.t Fri Oct 19 00:50:12 2012 +0200 @@ -38,6 +38,7 @@ ========================== setup +(we add the 1 flags to prevent bumped error during the test) $ mkcommit old $ hg push @@ -50,7 +51,7 @@ $ hg up -q '.^' $ mkcommit new created new head - $ hg debugobsolete `getid old` `getid new` + $ hg debugobsolete --flags 1 `getid old` `getid new` $ hg glog --hidden @ 71e3228bffe1 (draft) add new |