Comments
Patch
@@ -2200,7 +2200,8 @@
# extract addremove carefully -- this function can be called from a command
# that doesn't support addremove
if opts.get('addremove'):
- scmutil.addremove(repo, matcher, opts)
+ if scmutil.addremove(repo, matcher, opts) != 0:
+ raise util.Abort(_("addremove failed"))
return commitfunc(ui, repo, message, matcher, opts)
@@ -64,4 +64,19 @@
$ hg addremove -s 50
adding b
adding c
+
+ $ rm c
+#if windows
+ $ hg ci -A -m "c" nonexistant
+ nonexistant: The system cannot find the file specified
+ abort: addremove failed
+ [255]
+#else
+ $ hg ci -A -m "c" nonexistant
+ nonexistant: No such file or directory
+ abort: addremove failed
+ [255]
+#endif
+ $ hg st
+ ! c
$ cd ..