##// END OF EJS Templates
hg revert should revert to parent, not to tip...
hg revert should revert to parent, not to tip -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hg revert should revert to parent, not to tip manifest hash: b6b622d0316f9f7ef60e500fb73844a4b0ad7b69 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCx27VywK+sNU5EO8RAnpHAKC1H3GAPC5wYlgpJG7Z7rWPl+vblQCeKVsz UCjkaDw40evLbltWoY24xQs= =dmvS -----END PGP SIGNATURE-----

File last commit:

r536:c15b4bc0 default
r590:38d106db default
Show More
test-diffdir
12 lines | 187 B | text/plain | TextLexer
#!/bin/sh
hg init
touch a
hg add a
hg ci -t "a" -u test -d "0 0"
echo 123 > b
hg add b
hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/"
hg diff -r tip | sed "s/\(\(---\|+++\).*\)\t.*/\1/"