##// END OF EJS Templates
transitive copy/rename...
transitive copy/rename Add support for transitive copy or rename operations, e.g. hg rename a b ... (possibly edit b) hg rename b c hg commit ... by actually renaming "b" as "c" while recording a copy of "a" to "c" and a removal of "a".

File last commit:

r1570:6a104941 default
r1747:91c56c42 default
Show More
test-remove
17 lines | 193 B | text/plain | TextLexer
#!/bin/sh
hg init a
cd a
echo a > foo
hg add foo
hg commit -m 1 -d "0 0"
rm foo
hg remove foo
hg commit -m 2 -d "0 0"
hg export 0
hg export 1
hg log -p -r 0
hg log -p -r 1
cd ..
hg clone a b