hg
author Robin Farine <robin.farine@terminus.org>
Tue, 28 Feb 2006 23:47:40 -0800
changeset 1822 64df4220b349
parent 1698 ad4a2eefe4d7
child 3886 abaee83ce0a6
permissions -rwxr-xr-x
copy/rename to a removed destination file When the destination of a copy or rename operation has been marked for removal, we need to restore it before we overwrite it with the new content. This also handles the case of idempotent renames, i.e. hg rename "a" "b" hg rename "b" "a"

#!/usr/bin/env python
#
# mercurial - scalable distributed SCM
#
# Copyright 2005, 2006 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()