Mercurial > hgsubversion
comparison svnwrap/svn_swig_wrapper.py @ 175:2412800b1258
Support svn:externals changes via .hgsvnexternals updates
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 02 Jan 2009 15:54:05 -0600 |
parents | 84fbf1469a31 |
children | 3f1e8a5ec9dd |
comparison
equal
deleted
inserted
replaced
174:f80132c5fea5 | 175:2412800b1258 |
---|---|
317 def driver_cb(parent, path, pool): | 317 def driver_cb(parent, path, pool): |
318 if not parent: | 318 if not parent: |
319 bat = editor.open_root(edit_baton, base_revision, self.pool) | 319 bat = editor.open_root(edit_baton, base_revision, self.pool) |
320 batons.append(bat) | 320 batons.append(bat) |
321 return bat | 321 return bat |
322 if path in addeddirs: | |
323 bat = editor.add_directory(path, parent, None, -1, pool) | |
324 batons.append(bat) | |
325 return bat | |
326 if path in deleteddirs: | 322 if path in deleteddirs: |
327 bat = editor.delete_entry(path, base_revision, parent, pool) | 323 bat = editor.delete_entry(path, base_revision, parent, pool) |
328 batons.append(bat) | 324 batons.append(bat) |
325 return bat | |
326 if path not in file_data: | |
327 if path in addeddirs: | |
328 bat = editor.add_directory(path, parent, None, -1, pool) | |
329 else: | |
330 bat = editor.open_directory(path, parent, base_revision, pool) | |
331 batons.append(bat) | |
332 props = properties.get(path, {}) | |
333 if 'svn:externals' in props: | |
334 value = props['svn:externals'] | |
335 editor.change_dir_prop(bat, 'svn:externals', value, pool) | |
329 return bat | 336 return bat |
330 base_text, new_text, action = file_data[path] | 337 base_text, new_text, action = file_data[path] |
331 compute_delta = True | 338 compute_delta = True |
332 if action == 'modify': | 339 if action == 'modify': |
333 baton = editor.open_file(path, parent, base_revision, pool) | 340 baton = editor.open_file(path, parent, base_revision, pool) |