tests/test-archive.t
changeset 12321 11db6fa2961e
parent 12319 381f131220ad
parent 12316 4134686b83e1
child 12327 92e30e135581
--- a/tests/test-archive.t	Fri Sep 17 12:45:13 2010 -0500
+++ b/tests/test-archive.t	Mon Sep 20 15:42:58 2010 +0200
@@ -219,5 +219,19 @@
   $ hg archive ../test-empty
   abort: no working directory: please specify a revision
   [255]
+old file -- date clamped to 1980
+
+  $ touch -d 1975-01-01 old
+  $ hg add old
+  $ hg commit -m old
+  $ hg archive ../old.zip
+  $ unzip -l ../old.zip
+  Archive:  ../old.zip
+    Length      Date    Time    Name
+  ---------  ---------- -----   ----
+        147  1980-01-01 00:00   old/.hg_archival.txt
+          0  1980-01-01 00:00   old/old
+  ---------                     -------
+        147                     2 files
 
   $ exit 0