diff hgsubversion/hg_delta_editor.py @ 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 537de0300510
children cc7a10efddc9
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,