test-diffdir
14 lines
| 308 B
| text/plain
|
TextLexer
/ tests / test-diffdir
|
r536 | #!/bin/sh | ||
hg init | ||||
touch a | ||||
hg add a | ||||
|
r749 | hg ci -m "a" -d "0 0" | ||
|
r536 | |||
echo 123 > b | ||||
hg add b | ||||
|
r949 | hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | ||
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | ||||
|
r536 | |||
|
r949 | hg diff -r tip | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | ||
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | ||||