1 #!/bin/sh
2
3 hg init
4 echo a > a
5 hg ci -Am t
6
7 hg mv a b
8 hg ci -Am t1
9 hg debugrename b
10
11 hg mv b a
12 hg ci -Am t2
13 hg debugrename a
14
15 echo % test with --rev
16 hg debugrename --rev 1 b
17