Mercurial > evolve
comparison tests/test-uncommit.t @ 1058:00bc31523074
uncommit: add a --rev argument
The uncommit command now taks a --rev argument. This lets restore the file
content in the current commit to another revision (instead of just is parent
content). This still does not touch the working directory content.\
This allow the longly awaited:
hg uncommit --hidden --rev 'precursors(.)'
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 15 Aug 2014 00:46:23 -0700 |
parents | 195642c1520b |
children | f355bbc124fc |
comparison
equal
deleted
inserted
replaced
1056:edfb9a0ad085 | 1058:00bc31523074 |
---|---|
334 $ hg previous | 334 $ hg previous |
335 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 335 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
336 [8] touncommit | 336 [8] touncommit |
337 $ hg uncommit aa | 337 $ hg uncommit aa |
338 1 new unstable changesets | 338 1 new unstable changesets |
339 | |
340 Test uncommiting agains a different base | |
341 | |
342 $ hg cat b --rev . | |
343 b | |
344 b | |
345 $ hg cat b --rev .^ | |
346 b | |
347 $ hg cat b --rev 0 | |
348 b: no such file in rev 07f494440405 | |
349 [1] | |
350 $ hg uncommit --rev 0 b | |
351 $ hg cat b --rev . | |
352 b: no such file in rev 5b27f6b17da2 | |
353 [1] | |
354 | |
355 Test uncommiting precursors | |
356 | |
357 $ hg uncommit --hidden --rev 'precursors(.)' b | |
358 $ hg cat b --rev . | |
359 b | |
360 b |