tests/test-commit-copy
author Pavel Volkovitskiy <int@mtx.ru>
Thu, 02 Apr 2009 22:25:49 +0400
changeset 7957 88a2687fbd38
parent 3853 c0b449154a90
permissions -rwxr-xr-x
right way to check if file was in renamed directory, fixes import monotone repos with renamed directories

#!/bin/sh

hg init dir
cd dir
echo bleh > bar
hg add bar
hg ci -m 'add bar'

hg cp bar foo
echo >> bar
hg ci -m 'cp bar foo; change bar'

hg debugrename foo
hg debugindex .hg/store/data/bar.i