# HG changeset patch # User Matt Harbison # Date 2017-05-14 01:30:02 # Node ID 37bcb4665529f5cc59b8dffb1014ac0cab37492c # Parent dc131b9772f2738d11867c7ae91e49c70f817b0b tests: fix up recent conditionalized output changes It looks like (!) can have surprising results matching back to the original output when adjacent lines change, probably because it uses the same code matching that allows (?) to skip missing output. 24f55686a63d ended up adding unconditionalized check*{exec,link} lines, duplicating the conditionalized lines. A Windows run wanted to delete the unconditionalized lines. This now runs on both Windows and Linux. diff --git a/tests/test-hardlinks.t b/tests/test-hardlinks.t --- a/tests/test-hardlinks.t +++ b/tests/test-hardlinks.t @@ -225,14 +225,11 @@ r4 has hardlinks in the working dir (not $ nlinksdir r4 2 r4/.hg/00changelog.i 2 r4/.hg/branch + 2 r4/.hg/cache/branch2-base + 2 r4/.hg/cache/branch2-served 2 r4/.hg/cache/checkisexec (execbit !) ? r4/.hg/cache/checklink-target (glob) (symlink !) 2 r4/.hg/cache/checknoexec (execbit !) - 2 r4/.hg/cache/branch2-base - 2 r4/.hg/cache/branch2-served - 2 r4/.hg/cache/checkisexec - 2 r4/.hg/cache/checklink-target - 2 r4/.hg/cache/checknoexec 2 r4/.hg/cache/rbc-names-v1 2 r4/.hg/cache/rbc-revs-v1 2 r4/.hg/dirstate @@ -274,14 +271,11 @@ Update back to revision 11 in r4 should $ nlinksdir r4 2 r4/.hg/00changelog.i 1 r4/.hg/branch + 2 r4/.hg/cache/branch2-base + 2 r4/.hg/cache/branch2-served 2 r4/.hg/cache/checkisexec (execbit !) 2 r4/.hg/cache/checklink-target (symlink !) 2 r4/.hg/cache/checknoexec (execbit !) - 2 r4/.hg/cache/branch2-base - 2 r4/.hg/cache/branch2-served - 2 r4/.hg/cache/checkisexec - 2 r4/.hg/cache/checklink-target - 2 r4/.hg/cache/checknoexec 2 r4/.hg/cache/rbc-names-v1 2 r4/.hg/cache/rbc-revs-v1 1 r4/.hg/dirstate diff --git a/tests/test-tags.t b/tests/test-tags.t --- a/tests/test-tags.t +++ b/tests/test-tags.t @@ -671,13 +671,10 @@ Cloning should pull down hgtags fnodes m Missing tags2* files means the cache wasn't written through the normal mechanism. $ ls tagsclient/.hg/cache + branch2-base checkisexec (execbit !) checklink (symlink !) checklink-target (symlink !) - branch2-base - checkisexec - checklink - checklink-target hgtagsfnodes1 Cache should contain the head only, even though other nodes have tags data @@ -699,13 +696,10 @@ Running hg tags should produce tags2* fi 0.1 0:96ee1d7354c4 $ ls tagsclient/.hg/cache + branch2-base checkisexec (execbit !) checklink (symlink !) checklink-target (symlink !) - branch2-base - checkisexec - checklink - checklink-target hgtagsfnodes1 tags2-visible