comparison push_cmd.py @ 12:c5039390332f

Fix partial implementation.
author Augie Fackler <durin42@gmail.com>
date Mon, 06 Oct 2008 14:14:50 -0500
parents dfdc078661db
children b3c7b844b782
comparison
equal deleted inserted replaced
11:83ed086ddf72 12:c5039390332f
141 if tf in props: 141 if tf in props:
142 props[ntf] = props[tf] 142 props[ntf] = props[tf]
143 del props[tf] 143 del props[tf]
144 if merc_util.binary(file_data[ntf][1]): 144 if merc_util.binary(file_data[ntf][1]):
145 props.setdefault(ntf, {}).update(props.get(ntf, {})) 145 props.setdefault(ntf, {}).update(props.get(ntf, {}))
146 props.setdefault(ntf, {})['svn:mime-type'] 146 props.setdefault(ntf, {})['svn:mime-type'] = 'application/octet-stream'
147 del file_data[tf] 147 del file_data[tf]
148 added_dirs = ['%s/%s' % (branch_path, f) for f in added_dirs] 148 added_dirs = ['%s/%s' % (branch_path, f) for f in added_dirs]
149 new_target_files += added_dirs 149 new_target_files += added_dirs
150 try: 150 try:
151 svn.commit(new_target_files, rev_ctx.description(), file_data, 151 svn.commit(new_target_files, rev_ctx.description(), file_data,