mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
1b244c77c7
Some systems show "Thu Jan 01" instead of "Thu Jan 1", which breaks tests. Using "1000000" yields "Mon Jan 12 13:46:40 1970", which looks the same on all systems.
19 lines
242 B
Bash
Executable File
19 lines
242 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
mkdir t
|
|
cd t
|
|
hg init
|
|
echo 0 > a
|
|
echo 0 > b
|
|
hg ci -A -m m -d "1000000 0"
|
|
hg rm a
|
|
hg cat a
|
|
sleep 1 # make sure mtime is changed
|
|
echo 1 > b
|
|
hg ci -m m -d "1000000 0"
|
|
echo 2 > b
|
|
hg cat -r 0 a
|
|
hg cat -r 0 b
|
|
hg cat -r 1 a
|
|
hg cat -r 1 b
|