diff -r 642f86363883 -r 056c8052884d tests/test-split.t --- a/tests/test-split.t Tue Feb 28 17:15:21 2017 +0100 +++ b/tests/test-split.t Tue Feb 28 17:17:40 2017 +0100 @@ -336,6 +336,7 @@ > evolution=createmarkers > evolutioncommands=split > EOF + $ hg up -qC tip $ hg split -r "desc(split3)" abort: cannot split commit: ced8fbcce3a7 not a head [255] @@ -345,6 +346,7 @@ $ echo "evolution=createmarkers" >> $HGRCPATH Running split without any revision operates on the parent of the working copy + $ hg up -qC tip $ hg split << EOF > q > EOF @@ -358,6 +360,7 @@ [255] Running split with tip revision, specified as unnamed argument + $ hg up -qC tip $ hg split . << EOF > q > EOF @@ -377,6 +380,8 @@ abort: more than one revset is given (use either `hg split ` or `hg split --rev `, not both) [255] + $ hg revert --all + forgetting _d Split empty commit (issue5191) $ hg branch new-branch