D925: test-merge-subrepos: make test compatible with chg
singhsrb (Saurabh Singh)
phabricator at mercurial-scm.org
Tue Oct 3 20:07:28 UTC 2017
singhsrb created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The test checks the output of '.hg/blackbox.log' which will contain
logs corresponding to chg in case chg is running. Therefore, this commit
modifies the test to take chg into consideration while checking the
blackbox.log contents.
TEST PLAN
Ran the test 'test-merge-subrepos.t' with and without the '--chg'
option.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D925
AFFECTED FILES
tests/test-merge-subrepos.t
CHANGE DETAILS
diff --git a/tests/test-merge-subrepos.t b/tests/test-merge-subrepos.t
--- a/tests/test-merge-subrepos.t
+++ b/tests/test-merge-subrepos.t
@@ -59,9 +59,18 @@
$ hg id --config extensions.blackbox= --config blackbox.dirty=True
9bfe45a197d7+ tip
+#if no-chg
$ cat .hg/blackbox.log
* @9bfe45a197d7b0ab09bf287729dd57e9619c9da5+ (*)> id (glob)
* @9bfe45a197d7b0ab09bf287729dd57e9619c9da5+ (*)> id --config *extensions.blackbox=* --config *blackbox.dirty=True* exited 0 * (glob)
+#else
+The first line of blackbox.log will correspond to the chg master server.
+Therefore, glob first line when chg is running.
+ $ cat .hg/blackbox.log
+ * (glob)
+ * @9bfe45a197d7b0ab09bf287729dd57e9619c9da5+ (*)> id (glob)
+ * @9bfe45a197d7b0ab09bf287729dd57e9619c9da5+ (*)> id --config *extensions.blackbox=* --config *blackbox.dirty=True* exited 0 * (glob)
+#endif
TODO: a deleted file should be listed as such, like the top level repo
To: singhsrb, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list