hg
author Robin Farine <robin.farine@terminus.org>
Wed, 26 Oct 2005 16:24:10 -0700
changeset 1455 407bd229f003
parent 515 03f27b1381f9
child 1698 ad4a2eefe4d7
permissions -rwxr-xr-x
[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".

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