# HG changeset patch # User Adrian Buehlmann # Date 1338838838 -7200 # Node ID 1415edd88c5601d5f85ef94b09c36df2577a9561 # Parent 241a32942c7ad462b1d96e3319d48e56e8ebbb16 test-tags: enable for Windows It turns out that MSYS does have a chmod.exe, but it has no effect. So, the inserted "#if unix-permissions" is somewhat redundant, as the test would pass without it as well: it would simply write the tag cache, despite what the comment says. But I'm actually in favor of inserting the #if, as it makes it clearer what's going on. diff -r 241a32942c7a -r 1415edd88c56 tests/test-tags.t --- a/tests/test-tags.t Mon Jun 04 21:09:54 2012 +0200 +++ b/tests/test-tags.t Mon Jun 04 21:40:38 2012 +0200 @@ -1,5 +1,3 @@ - $ "$TESTDIR/hghave" unix-permissions || exit 80 - Helper functions: $ cacheexists() { @@ -77,11 +75,13 @@ And again, but now unable to write tag cache: +#if unix-permissions $ rm -f .hg/cache/tags $ chmod 555 .hg $ hg identify b9154636be93 tip $ chmod 755 .hg +#endif Create a branch: