tests/test-rename.t
changeset 48879 9987d14ad63f
parent 48369 35f1ecd84bd0
child 49621 55c6ebd11cb9
equal deleted inserted replaced
48878:0583d7f0fdff 48879:9987d14ad63f
   680   >>> os.utime(filename, (mtime, mtime))
   680   >>> os.utime(filename, (mtime, mtime))
   681   $ hg ci -qAm 'add mtime dir'
   681   $ hg ci -qAm 'add mtime dir'
   682 "hg cp" does not preserve the mtime, so it should be newer than the 2009
   682 "hg cp" does not preserve the mtime, so it should be newer than the 2009
   683 timestamp.
   683 timestamp.
   684   $ hg cp -q mtime mtime_cp
   684   $ hg cp -q mtime mtime_cp
   685   >>> from __future__ import print_function
       
   686   >>> import os
   685   >>> import os
   687   >>> filename = "mtime_cp/f"
   686   >>> filename = "mtime_cp/f"
   688   >>> print(os.stat(filename).st_mtime < 1234567999)
   687   >>> print(os.stat(filename).st_mtime < 1234567999)
   689   False
   688   False
   690 "hg mv" preserves the mtime, so it should be ~equal to the 2009 timestamp
   689 "hg mv" preserves the mtime, so it should be ~equal to the 2009 timestamp
   691 (modulo some fudge factor due to not every system supporting 1s-level
   690 (modulo some fudge factor due to not every system supporting 1s-level
   692 precision).
   691 precision).
   693   $ hg mv -q mtime mtime_mv
   692   $ hg mv -q mtime mtime_mv
   694   >>> from __future__ import print_function
       
   695   >>> import os
   693   >>> import os
   696   >>> filename = "mtime_mv/f"
   694   >>> filename = "mtime_mv/f"
   697   >>> print(os.stat(filename).st_mtime < 1234567999)
   695   >>> print(os.stat(filename).st_mtime < 1234567999)
   698   True
   696   True