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