[PATCH] tests: compatibility fix
Dan Villiom Podlaski Christiansen
danchr at gmail.com
Tue Sep 21 11:40:19 CDT 2010
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1285086983 -7200
# Node ID 27477f3d85eaaca503b5a239eed669edc8be74a8
# Parent 995c8c4556be96af244bcc8d2cdbabf13bf59b49
tests: compatibility fix.
'touch -d *' doesn't work on Mac OS X. In order to prevent this from
occuring again, a check for the case is added to 'check-code.py'.
diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -63,6 +63,7 @@ testpats = [
(r'export.*=', "don't export and assign at once"),
('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
(r'^source\b', "don't use 'source', use '.'"),
+ (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
]
testfilters = [
diff --git a/tests/test-archive.t b/tests/test-archive.t
--- a/tests/test-archive.t
+++ b/tests/test-archive.t
@@ -221,7 +221,7 @@ empty repo
[255]
old file -- date clamped to 1980
- $ touch -d 1975-01-01 old
+ $ touch -t 19750101 old
$ hg add old
$ hg commit -m old
$ hg archive ../old.zip
More information about the Mercurial-devel
mailing list