Mercurial > hg > pyhgsh
view hg @ 1455:407bd229f003
[PATCH] copy/rename a directory
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".
author | Robin Farine <robin.farine@terminus.org> |
---|---|
date | Wed, 26 Oct 2005 16:24:10 -0700 |
parents | 03f27b1381f9 |
children | ad4a2eefe4d7 |
line wrap: on
line source
#!/usr/bin/env python # # mercurial - a minimal scalable distributed SCM # v0.6 "paola" # # Copyright 2005 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. from mercurial import commands commands.run()