Mercurial > hgsubversion
comparison svnwrap/svn_swig_wrapper.py @ 10:dfdc078661db
Auto-set executable, symlink, and auto-props.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 06 Oct 2008 13:52:10 -0500 |
parents | 9eb6bf2be1e7 |
children | 2953c867ca99 |
comparison
equal
deleted
inserted
replaced
9:9eb6bf2be1e7 | 10:dfdc078661db |
---|---|
239 start = revisions[-1].revnum | 239 start = revisions[-1].revnum |
240 while len(revisions) > 0: | 240 while len(revisions) > 0: |
241 yield revisions[0] | 241 yield revisions[0] |
242 revisions.pop(0) | 242 revisions.pop(0) |
243 | 243 |
244 def commit(self, paths, message, file_data, base_revision, dirs): | 244 def commit(self, paths, message, file_data, base_revision, dirs, |
245 properties): | |
245 """Commits the appropriate targets from revision in editor's store. | 246 """Commits the appropriate targets from revision in editor's store. |
246 """ | 247 """ |
247 self.init_ra_and_client() | 248 self.init_ra_and_client() |
248 commit_info = [] | 249 commit_info = [] |
249 def commit_cb(_commit_info, pool): | 250 def commit_cb(_commit_info, pool): |
268 print e.message | 269 print e.message |
269 raise | 270 raise |
270 elif action == 'delete': | 271 elif action == 'delete': |
271 baton = editor.delete_entry(path, base_revision, parent, pool) | 272 baton = editor.delete_entry(path, base_revision, parent, pool) |
272 compute_delta = False | 273 compute_delta = False |
274 | |
275 if path in properties: | |
276 if properties[path].get('svn:special', None): | |
277 new_text = 'link %s' % new_text | |
278 for p, v in properties[path].iteritems(): | |
279 editor.change_file_prop(baton, p, v) | |
273 | 280 |
274 if compute_delta: | 281 if compute_delta: |
275 handler, wh_baton = editor.apply_textdelta(baton, None, | 282 handler, wh_baton = editor.apply_textdelta(baton, None, |
276 self.pool) | 283 self.pool) |
277 | 284 |