changeset 1:b6cf3e38343e

Remove old generated files before moving
author Louis Opter <louis.opter@dotcloud.com>
date Thu, 25 Mar 2010 18:42:46 +0100
parents 939b2b9901f3
children a85cbad8dadb
files doxyhook.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doxyhook.py	Thu Mar 25 18:26:42 2010 +0100
+++ b/doxyhook.py	Thu Mar 25 18:42:46 2010 +0100
@@ -102,6 +102,8 @@
 def move_doc(source, dest):
     """Move the doc from source to dest"""
 
+    if os.path.isdir(dest):
+        shutil.rmtree(dest)
     shutil.move(source, dest)
 
 def hook(ui, repo, hooktype, **kwargs):