Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-copy2 @ 1249:a5355fa5e33a
Fix up copy command to behave more like regular "cp".
In addition to recording changes, copy now updates the working
directory.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 14 Sep 2005 14:29:02 -0700 |
parents | 235e0effa672 |
children | 94f38724283f |
comparison
equal
deleted
inserted
replaced
1248:2534b41ce0c5 | 1249:a5355fa5e33a |
---|---|
24 | 24 |
25 echo "# should not be renamed" | 25 echo "# should not be renamed" |
26 hg debugrename bar | 26 hg debugrename bar |
27 | 27 |
28 cp foo bar | 28 cp foo bar |
29 hg copy foo bar | 29 hg copy -f foo bar |
30 echo "# should show copy" | 30 echo "# should show copy" |
31 hg debugstate|grep '^copy' | 31 hg debugstate|grep '^copy' |
32 hg commit -m3 -d"0 0" | 32 hg commit -m3 -d"0 0" |
33 | 33 |
34 echo "# should show no parents for tip" | 34 echo "# should show no parents for tip" |