From patchwork Tue Aug 1 20:22:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D203: tests: demonstrate that failed "hg ci -A" updates dirstate (issue5645) From: phabricator X-Patchwork-Id: 22607 Message-Id: <9ea2a5c57b9cc5a2348303fd117dbd14@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Tue, 1 Aug 2017 20:22:32 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGd84da82764e3: tests: demonstrate that failed "hg ci -A" updates dirstate (issue5645) (authored by martinvonz). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D203?vs=471&id=481 REVISION DETAIL https://phab.mercurial-scm.org/D203 AFFECTED FILES tests/test-commit.t CHANGE DETAILS To: martinvonz, #hg-reviewers, durin42 Cc: mercurial-devel 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 @@ 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