Mercurial > hg > buttercup
changeset 11:8a54d538646a
dont clone over existing files
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 08 Nov 2010 08:08:49 -0800 |
parents | ac44aa18da38 |
children | d51923b276ef |
files | buttercup/checkout.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/buttercup/checkout.py Mon Nov 08 08:05:14 2010 -0800 +++ b/buttercup/checkout.py Mon Nov 08 08:08:49 2010 -0800 @@ -65,7 +65,10 @@ # clone the sources for source in sources: - subprocess.call(['hg', 'clone', source[1]]) + if os.path.exists(source[0]): + print "%d already exists" + else: + subprocess.call(['hg', 'clone', source[1]]) # install the sources if options.install: