D8028: tests: use full `uncommit` command name in tests
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Jan 28 23:53:37 UTC 2020
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
I'm about to add a `hg uncopy`, so the `hg unc` we used for `hg
uncommit` would become ambiguous.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D8028
AFFECTED FILES
tests/test-uncommit.t
CHANGE DETAILS
diff --git a/tests/test-uncommit.t b/tests/test-uncommit.t
--- a/tests/test-uncommit.t
+++ b/tests/test-uncommit.t
@@ -489,7 +489,7 @@
$ hg add b
$ hg status
A b
- $ hg unc a
+ $ hg uncommit a
note: keeping empty commit
$ cat a
super critical info!
@@ -503,11 +503,11 @@
$ hg ci -Am 'add b'
$ echo 'foo bar' > b
- $ hg unc b
+ $ hg uncommit b
abort: uncommitted changes
(requires --allow-dirty-working-copy to uncommit)
[255]
- $ hg unc --allow-dirty-working-copy b
+ $ hg uncommit --allow-dirty-working-copy b
$ hg log
changeset: 3:30fa958635b2
tag: tip
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list