rollback: avoid a `hg commit --addremove` at a critical point
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 15 Feb 2023 23:39:10 +0100
changeset 50068 b35fb0e5b8d6
parent 50067 059910ac7b76
child 50069 81870c92c293
rollback: avoid a `hg commit --addremove` at a critical point The rollback behavior around `hg commit --addremove` has changed slightly. It does not really matters here but keeping that variant out of the way cannot hurt.
tests/test-rollback.t
--- a/tests/test-rollback.t	Wed Feb 15 20:48:51 2023 +0100
+++ b/tests/test-rollback.t	Wed Feb 15 23:39:10 2023 +0100
@@ -70,8 +70,8 @@
   |
   o  0  [default] (bar) add a again
   
-  $ hg commit -Am'add b'
-  adding b
+  $ hg add b
+  $ hg commit -m'add b'
   $ hg log -G --template '{rev}  [{branch}] ({bookmarks}) {desc|firstline}\n'
   @  2  [test] (foo) add b
   |