1
#!/bin/sh
2
3
hg init
4
touch a
5
hg add a
6
hg ci -t "a" -u test -d "0 0"
7
8
echo 123 > b
9
hg add b
10
hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/"
11
12
hg diff -r tip | sed "s/\(\(---\|+++\).*\)\t.*/\1/"