tests/test-commit-copy
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Thu, 21 Jun 2007 23:42:06 -0300
changeset 4677 de8ec7e1753a
parent 3853 c0b449154a90
permissions -rwxr-xr-x
dirstate.status: if a file is marked as copied, consider it modified After a "hg copy --force --after somefile cleanfile", cleanfile shouldn't be considered clean anymore.

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