# HG changeset patch # User Martin von Zweigbergk # Date 2017-07-31 21:54:08 # Node ID d84da82764e3352333303bfa912574f812aa140f # Parent c6146dd1007225f4c4808af155c79a12fbf31f9d tests: demonstrate that failed "hg ci -A" updates dirstate (issue5645) Differential Revision: https://phab.mercurial-scm.org/D203 diff --git a/tests/test-commit.t b/tests/test-commit.t --- a/tests/test-commit.t +++ b/tests/test-commit.t @@ -147,6 +147,18 @@ Using the advanced --extra flag oldhash=bar sourcehash=foo +Failed commit with --addremove should not update dirstate + + $ echo foo > newfile + $ hg status + ? newfile + $ HGEDITOR=false hg ci --addremove + adding newfile + abort: edit failed: false exited with status 1 + [255] + $ hg status + A newfile + Make sure we do not obscure unknown requires file entries (issue2649) $ echo foo >> foo