test-diffdir
18 lines
| 434 B
| text/plain
|
TextLexer
/ tests / test-diffdir
mpm@selenic.com
|
r536 | #!/bin/sh | ||
hg init | ||||
touch a | ||||
hg add a | ||||
Thomas Arendsen Hein
|
r1933 | hg ci -m "a" -d "1000000 0" | ||
mpm@selenic.com
|
r536 | |||
echo 123 > b | ||||
hg add b | ||||
TK Soh
|
r949 | hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | ||
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | ||||
mpm@selenic.com
|
r536 | |||
TK Soh
|
r949 | hg diff -r tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | ||
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | ||||
Thomas Arendsen Hein
|
r1723 | |||
echo foo > a | ||||
hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | ||||
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | ||||