comparison tests/test-fix.t @ 37809:80695628adcb stable

test-fix: normalize precision of mtime copied by 'cp -p' Appears that MSYS cp only copies mtime in seconds.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 23 Apr 2018 21:13:19 +0900
parents 8fa3396a832d
children f068495a1c28
comparison
equal deleted inserted replaced
37808:f73842ecedcd 37809:80695628adcb
492 492
493 $ printf "NO FIX NEEDED\n" > foo.whole 493 $ printf "NO FIX NEEDED\n" > foo.whole
494 $ hg add 494 $ hg add
495 adding foo.whole 495 adding foo.whole
496 $ cp -p foo.whole foo.whole.orig 496 $ cp -p foo.whole foo.whole.orig
497 $ cp -p foo.whole.orig foo.whole
497 $ sleep 2 # mtime has a resolution of one or two seconds. 498 $ sleep 2 # mtime has a resolution of one or two seconds.
498 $ hg fix --working-dir 499 $ hg fix --working-dir
499 $ f foo.whole.orig --newer foo.whole 500 $ f foo.whole.orig --newer foo.whole
500 foo.whole.orig: newer than foo.whole 501 foo.whole.orig: newer than foo.whole
501 502