Mercurial > evolve
diff tests/test-uncommit.t @ 318:da7509e7b50c
evolve: warn when uncommit leave an empty changeset
This is intended to replace the proposed --delete flag.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 27 Jun 2012 03:51:54 +0200 |
parents | 3db377533c32 |
children | f4302a2079f4 56d4c6207ef9 |
line wrap: on
line diff
--- a/tests/test-uncommit.t Wed Jun 27 03:37:49 2012 +0200 +++ b/tests/test-uncommit.t Wed Jun 27 03:51:54 2012 +0200 @@ -311,6 +311,17 @@ 5eb72dbe0cb4 c706fe2c12f8 5eb72dbe0cb4 e8db4aa611f6 +Display a warning if nothing left + + $ hg uncommit e + new changeset is empty + (use "hg kill ." to remove it) + $ hg debugsuccessors + 5eb72dbe0cb4 c4cbebac3751 + 5eb72dbe0cb4 c706fe2c12f8 + 5eb72dbe0cb4 e8db4aa611f6 + c4cbebac3751 4f1c269eab68 + Test instability warning $ hg ci -m touncommit @@ -318,6 +329,6 @@ $ hg ci -Am addunrelated unrelated $ hg gdown 0 files updated, 0 files merged, 1 files removed, 0 files unresolved - [7] touncommit + [8] touncommit $ hg uncommit aa 1 new unstables changesets