# HG changeset patch # User Jeff Hammel # Date 1289232529 28800 # Node ID 8a54d538646aa712106a666b35c66c3c70be03ad # Parent ac44aa18da388758202525647cedebd4f21784ab dont clone over existing files diff -r ac44aa18da38 -r 8a54d538646a buttercup/checkout.py --- 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: