[RFC] remove/copy enhancements
bos at serpentine.com
Thu Sep 15 12:54:16 CDT 2005
On Thu, 2005-09-15 at 12:30 -0500, Jordan Breeding wrote:
> The problem I see is that `hg cp -p <dir> <new_name>` fails,
Works for me:
~/hg/hg/hg-work $ ls newdir
ls: newdir: No such file or directory
~/hg/hg/hg-work $ hg cp -p doc newdir
copying doc/Makefile to newdir/doc/Makefile
copying doc/README to newdir/doc/README
copying doc/hg.1.txt to newdir/doc/hg.1.txt
copying doc/hgmerge.1.txt to newdir/doc/hgmerge.1.txt
copying doc/hgrc.5.txt to newdir/doc/hgrc.5.txt
> `hg cp -p <dir> .` fails,
As it should. You're trying to copy files over themselves.
> `mkdir <new_name>; hg cp -p <dir> <new_name>` works but I end up with
If that's not the behaviour you want, then don't use -p.
> 50 jbb at cloves /tmp/jbb_test > hg cp -p three ten
> abort: with --parents, destination must be a directory
You appear to be getting completely different errors from me. This
works for me, for example. Can you instrument the code a bit, and look
into what's happening?
More information about the Mercurial