tests/test-debugrename
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 23 Jul 2008 16:08:20 +0200
changeset 6835 08d9e0f974d9
parent 4637 5a088ac232e6
permissions -rwxr-xr-x
make mq and tags hardlink safe The code didn't check for modes like "r+" or "rb+". Many thanks to agriffis for noticing it.

#!/bin/sh

hg init
echo a > a
hg ci -Am t

hg mv a b
hg ci -Am t1
hg debugrename b

hg mv b a
hg ci -Am t2
hg debugrename a

echo % test with --rev
hg debugrename --rev 1 b