[PATCH] test-command-template: enable for Windows
Adrian Buehlmann
adrian at cadifra.com
Mon Jun 11 12:22:27 CDT 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1339435116 -7200
# Node ID 6ef74c31ef5a5fb86fffbc24d84bfd34c70dbf8e
# Parent e59bc7223a129cc479c40bd5eaa9528800b770d9
test-command-template: enable for Windows
diff --git a/tests/test-command-template.t b/tests/test-command-template.t
--- a/tests/test-command-template.t
+++ b/tests/test-command-template.t
@@ -1,5 +1,3 @@
- $ "$TESTDIR/hghave" unix-permissions || exit 80
-
$ hg init a
$ cd a
$ echo a > a
@@ -444,11 +442,13 @@
Error if style not readable:
+#if unix-permissions
$ touch q
$ chmod 0 q
$ hg log --style ./q
abort: Permission denied: ./q
[255]
+#endif
Error if no style:
@@ -466,13 +466,15 @@
Error if include fails:
$ echo 'changeset = q' >> t
+#if unix-permissions
$ hg log --style ./t
abort: template file ./q: Permission denied
[255]
+ $ rm q
+#endif
Include works:
- $ rm q
$ echo '{rev}' > q
$ hg log --style ./t
8
More information about the Mercurial-devel
mailing list