tests/test-archive.t
changeset 17629 331d611813ec
parent 17466 d5a3bda6e170
parent 17628 133d13e44544
child 17743 6047947afb6b
equal deleted inserted replaced
17627:84f12b832ee8 17629:331d611813ec
   268   *0*80*00:00*old/old (glob)
   268   *0*80*00:00*old/old (glob)
   269   *-----* (glob)
   269   *-----* (glob)
   270   \s*147\s+2 files (re)
   270   \s*147\s+2 files (re)
   271 
   271 
   272   $ cd ..
   272   $ cd ..
       
   273 
       
   274 issue3600: check whether "hg archive" can create archive files which
       
   275 are extracted with expected timestamp, even though TZ is not
       
   276 configured as GMT.
       
   277 
       
   278   $ mkdir issue3600
       
   279   $ cd issue3600
       
   280 
       
   281   $ hg init repo
       
   282   $ echo a > repo/a
       
   283   $ hg -R repo add repo/a
       
   284   $ hg -R repo commit -m '#0' -d '456789012 21600'
       
   285   $ cat > show_mtime.py <<EOF
       
   286   > import sys, os
       
   287   > print int(os.stat(sys.argv[1]).st_mtime)
       
   288   > EOF
       
   289 
       
   290   $ hg -R repo archive --prefix tar-extracted archive.tar
       
   291   $ (TZ=UTC-3; export TZ; tar xf archive.tar)
       
   292   $ python show_mtime.py tar-extracted/a
       
   293   456789012
       
   294 
       
   295   $ hg -R repo archive --prefix zip-extracted archive.zip
       
   296   $ (TZ=UTC-3; export TZ; unzip -q archive.zip)
       
   297   $ python show_mtime.py zip-extracted/a
       
   298   456789012
       
   299 
       
   300   $ cd ..