# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 2010-09-21 16:36:23 # Node ID 3acd5f7ab9d0f3828830ccb3f28477dbdd5eeac8 # Parent c01dc9087d9a8cc00ec49eb8cbf4cd512ec0c834 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