D6698: fix: add some new test cases
hooper (Danny Hooper)
phabricator at mercurial-scm.org
Fri Jul 26 17:48:11 UTC 2019
hooper created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
These cover a couple of behaviors we were testing at Google that weren't
covered here before.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6698
AFFECTED FILES
tests/test-fix.t
CHANGE DETAILS
diff --git a/tests/test-fix.t b/tests/test-fix.t
--- a/tests/test-fix.t
+++ b/tests/test-fix.t
@@ -439,6 +439,18 @@
$ printf "a\nb\nc\nd\ne\nf\ng\n" > foo.changed
$ hg commit -Aqm "foo"
$ printf "zz\na\nc\ndd\nee\nff\nf\ngg\n" > foo.changed
+
+ $ hg fix --working-dir
+ $ cat foo.changed
+ ZZ
+ a
+ c
+ DD
+ EE
+ FF
+ f
+ GG
+
$ hg fix --working-dir --whole
$ cat foo.changed
ZZ
@@ -526,6 +538,21 @@
$ cd ..
+If we try to fix a missing file, we still fix other files.
+
+ $ hg init fixmissingfile
+ $ cd fixmissingfile
+
+ $ printf "fix me!\n" > foo.whole
+ $ hg add
+ adding foo.whole
+ $ hg fix --working-dir foo.whole bar.whole
+ bar.whole: $ENOENT$
+ $ cat *.whole
+ FIX ME!
+
+ $ cd ..
+
Specifying a directory name should fix all its files and subdirectories.
$ hg init fixdirectory
To: hooper, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list