# HG changeset patch # User Siddharth Agarwal # Date 1379994651 25200 # Node ID 94c394653b2a1f1bd5a1895ec9f04e664b2ca93b # Parent 41abe2e3e3b7828de0d3bfa66016c70f52d8324d merge: standardize error message for dirty working dir diff -r 41abe2e3e3b7 -r 94c394653b2a mercurial/merge.py --- a/mercurial/merge.py Mon Sep 23 20:33:02 2013 -0700 +++ b/mercurial/merge.py Mon Sep 23 20:50:51 2013 -0700 @@ -711,7 +711,7 @@ hint=_("use 'hg update' " "or check 'hg heads'")) if not force and (wc.files() or wc.deleted()): - raise util.Abort(_("outstanding uncommitted changes"), + raise util.Abort(_("uncommitted changes"), hint=_("use 'hg status' to list changes")) for s in sorted(wc.substate): if wc.sub(s).dirty(): diff -r 41abe2e3e3b7 -r 94c394653b2a tests/test-merge-force.t --- a/tests/test-merge-force.t Mon Sep 23 20:33:02 2013 -0700 +++ b/tests/test-merge-force.t Mon Sep 23 20:50:51 2013 -0700 @@ -19,7 +19,7 @@ Should fail, since there are deleted files: $ hg merge - abort: outstanding uncommitted changes + abort: uncommitted changes (use 'hg status' to list changes) [255] diff -r 41abe2e3e3b7 -r 94c394653b2a tests/test-merge1.t --- a/tests/test-merge1.t Mon Sep 23 20:33:02 2013 -0700 +++ b/tests/test-merge1.t Mon Sep 23 20:50:51 2013 -0700 @@ -140,7 +140,7 @@ $ echo This is file b22 > b merge fails $ hg merge 2 - abort: outstanding uncommitted changes + abort: uncommitted changes (use 'hg status' to list changes) [255] merge expected! @@ -177,7 +177,7 @@ $ echo This is file b33 > b merge of b should fail $ hg merge 2 - abort: outstanding uncommitted changes + abort: uncommitted changes (use 'hg status' to list changes) [255] merge of b expected diff -r 41abe2e3e3b7 -r 94c394653b2a tests/test-up-local-change.t --- a/tests/test-up-local-change.t Mon Sep 23 20:33:02 2013 -0700 +++ b/tests/test-up-local-change.t Mon Sep 23 20:50:51 2013 -0700 @@ -171,7 +171,7 @@ (commit and merge, or update --clean to discard changes) [255] $ hg --debug merge - abort: outstanding uncommitted changes + abort: uncommitted changes (use 'hg status' to list changes) [255] $ hg --debug merge -f