mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +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
434 B
Bash
Executable File
19 lines
434 B
Bash
Executable File
#!/bin/sh
|
|
|
|
hg init
|
|
touch a
|
|
hg add a
|
|
hg ci -m "a" -d "1000000 0"
|
|
|
|
echo 123 > b
|
|
hg add b
|
|
hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
|
|
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
|
|
|
|
hg diff -r tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
|
|
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
|
|
|
|
echo foo > a
|
|
hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
|
|
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
|