changeset 350:b6f9e270f103

hg_delta_editor: do not raise an error for bad symlinks, but warn instead.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 22 May 2009 17:47:09 +0200
parents 5d0d9424913f
children 3d5c4352a6c8
files hgsubversion/hg_delta_editor.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/hg_delta_editor.py
+++ b/hgsubversion/hg_delta_editor.py
@@ -699,8 +699,8 @@ class HgChangeReceiver(delta.Editor):
                     if is_link and data.startswith('link '):
                         data = data[len('link '):]
                     elif is_link:
-                        raise ValueError('file erronously marked as a link: '
-                                         '%s (%r)' % (current_file, flags))
+                        self.ui.warn('file marked as link, but contains data: '
+                                     '%s (%r)\n' % (current_file, flags))
                 else:
                     data = parent_ctx.filectx(path).data()
                 return context.memfilectx(path=path,