[PATCH 6 of 8] test-mq: conditionalize output instead of tests
Matt Harbison
mharbison72 at gmail.com
Sat Jul 8 21:11:04 EDT 2017
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1499553972 14400
# Sat Jul 08 18:46:12 2017 -0400
# Node ID f2cdd7055b37ed3ad241bc9340d256af5b9f9379
# Parent c09262204a6f667250cb120e58ef469fba7b9cdd
test-mq: conditionalize output instead of tests
diff --git a/tests/test-mq.t b/tests/test-mq.t
--- a/tests/test-mq.t
+++ b/tests/test-mq.t
@@ -932,27 +932,17 @@
#endif
$ hg add new
$ hg qrefresh
-#if execbit
+
$ cat .hg/patches/new
new file
diff --git a/new b/new
- new file mode 100755
+ new file mode 100755 (execbit !)
+ new file mode 100644 (no-execbit !)
--- /dev/null
+++ b/new
@@ -0,0 +1,1 @@
+foo
-#else
- $ cat .hg/patches/new
- new file
-
- diff --git a/new b/new
- new file mode 100644
- --- /dev/null
- +++ b/new
- @@ -0,0 +1,1 @@
- +foo
-#endif
$ hg qnew -m'copy file' copy
$ hg cp new copy
More information about the Mercurial-devel
mailing list