D6079: tests: simplify test-uncommit.t by removing an unnecessary commit
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Mar 6 23:50:06 UTC 2019
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
I don't see what value the first commit adds in the test for issue
5977, so let's remove it.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6079
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
@@ -474,42 +474,21 @@
$ hg init issue5977
$ cd issue5977
$ echo 'super critical info!' > a
- $ hg ci -Am 'add a'
+ $ echo 'foo' > b
+ $ hg ci -Am 'add b'
adding a
- $ echo 'foo' > b
- $ hg add b
- $ hg status
- A b
- $ hg unc a
- note: keeping empty commit
- $ cat a
- super critical info!
- $ hg log
- changeset: 1:656ba143d384
- tag: tip
- parent: -1:000000000000
- user: test
- date: Thu Jan 01 00:00:00 1970 +0000
- summary: add a
-
- $ hg ci -Am 'add b'
+ adding b
$ echo 'foo bar' > b
$ hg unc b
abort: uncommitted changes
(requires --allow-dirty-working-copy to uncommit)
[255]
$ hg unc --allow-dirty-working-copy b
$ hg log
- changeset: 3:30fa958635b2
+ changeset: 1:0aa852043fdc
tag: tip
- parent: 1:656ba143d384
+ parent: -1:000000000000
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: add b
- changeset: 1:656ba143d384
- parent: -1:000000000000
- user: test
- date: Thu Jan 01 00:00:00 1970 +0000
- summary: add a
-
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list