[PATCH] copy/rename a directory
Robin Farine
robin.farine at terminus.org
Fri Sep 23 07:24:18 CDT 2005
On Fri September 23 2005 10:49, I wrote:
> This patch adds support for 'hg copy dir1 dir2' or 'hg rename
> dir1 dir2'. When "dir2" exists, "dir1" is recursively copied (or
> moved) to "dir2/dir1". When "dir2" does not exists, "dir1" is
> copied to (renamed as) "dir2".
This handles a special case that in fact should be included in a
more common case. For instance, running 'hg copy d* c' in a
directory that contains directories "d1", "d2" and "c" should copy
the whole subtree of "d1" under "c/d1" and the whole subtree of
"d2" under "c/d2". As far as I understand, this is different from
invoking copy or rename with --parents.
Does this correspond to the expected behavior?
Robin
More information about the Mercurial
mailing list