Mercurial > evolve
comparison 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 |
comparison
equal
deleted
inserted
replaced
317:c099ed0dd472 | 318:da7509e7b50c |
---|---|
309 $ hg debugsuccessors | 309 $ hg debugsuccessors |
310 5eb72dbe0cb4 c4cbebac3751 | 310 5eb72dbe0cb4 c4cbebac3751 |
311 5eb72dbe0cb4 c706fe2c12f8 | 311 5eb72dbe0cb4 c706fe2c12f8 |
312 5eb72dbe0cb4 e8db4aa611f6 | 312 5eb72dbe0cb4 e8db4aa611f6 |
313 | 313 |
314 Display a warning if nothing left | |
315 | |
316 $ hg uncommit e | |
317 new changeset is empty | |
318 (use "hg kill ." to remove it) | |
319 $ hg debugsuccessors | |
320 5eb72dbe0cb4 c4cbebac3751 | |
321 5eb72dbe0cb4 c706fe2c12f8 | |
322 5eb72dbe0cb4 e8db4aa611f6 | |
323 c4cbebac3751 4f1c269eab68 | |
324 | |
314 Test instability warning | 325 Test instability warning |
315 | 326 |
316 $ hg ci -m touncommit | 327 $ hg ci -m touncommit |
317 $ echo unrelated > unrelated | 328 $ echo unrelated > unrelated |
318 $ hg ci -Am addunrelated unrelated | 329 $ hg ci -Am addunrelated unrelated |
319 $ hg gdown | 330 $ hg gdown |
320 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 331 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
321 [7] touncommit | 332 [8] touncommit |
322 $ hg uncommit aa | 333 $ hg uncommit aa |
323 1 new unstables changesets | 334 1 new unstables changesets |