changeset 57:c3c5546eefb1

Don't try and add a directory more than once.
author Augie Fackler <durin42@gmail.com>
date Mon, 03 Nov 2008 14:24:18 -0600
parents 0be16f306a42
children a8b9c7e7c2ac
files push_cmd.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/push_cmd.py
+++ b/push_cmd.py
@@ -136,6 +136,7 @@ def commit_from_rev(ui, repo, rev_ctx, h
                 props.setdefault(ntf, {})['svn:mime-type'] = 'application/octet-stream'
             del file_data[tf]
     added_dirs = ['%s/%s' % (branch_path, f) for f in added_dirs]
+    added_dirs = set(added_dirs)
     new_target_files += added_dirs
     try:
         svn.commit(new_target_files, rev_ctx.description(), file_data,