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'.
This commit is contained in:
Dan Villiom Podlaski Christiansen 2010-09-21 18:36:23 +02:00
parent 5d9fc42983
commit 8e99053714
2 changed files with 2 additions and 1 deletions

View File

@ -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 = [

View File

@ -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