##// 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:

r814:0902ffec merge default
r1747:91c56c42 default
Show More
test-empty-dir
16 lines | 191 B | text/plain | TextLexer
#!/bin/sh
hg init
echo 123 > a
hg add a
hg commit -m "first" -d "0 0" a
mkdir sub
echo 321 > sub/b
hg add sub/b
hg commit -m "second" -d "0 0" sub/b
cat sub/b
hg co 0
cat sub/b
ls sub
true