diff tests/test-userguide.t @ 1782:a046e78c3290

fold: require --from flag for folding revisions to working copy It's very easy to think that "hg fold 4::6" will fold exactly those revisions. In reality, it will fold those *and* any revisions between them and the working copy. To prevent users from making that mistake, require the use of a new --from flag for folding revisions from the given set to the working copy. With this change, I'm sure some users will be surprised that the command can not be run without either --from or --exact, but at least the consequences will be smaller (the command simply aborts and the user can try again).
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Jan 2017 13:47:49 -0800
parents 27445da063b7
children 4de90774eade 9f42f819267b
line wrap: on
line diff
--- a/tests/test-userguide.t	Tue Dec 13 10:28:09 2016 -0800
+++ b/tests/test-userguide.t	Thu Jan 12 13:47:49 2017 -0800
@@ -109,7 +109,7 @@
   7:05e61aab8294  step 1
   8:be6d5bc8e4cc  step 2
   9:35f432d9f7c1  step 3
-  $ hg fold -d '0 0' -m 'fix bug 64' -r 7::
+  $ hg fold -d '0 0' -m 'fix bug 64' --from -r 7::
   3 changesets folded
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ hg --hidden shortlog -G -r 6::