# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1243007229 -7200 # Node ID b6f9e270f10360b270615a54835d009e7f6a3269 # Parent 5d0d9424913fdb1f75f107836b59cc2e1de51785 hg_delta_editor: do not raise an error for bad symlinks, but warn instead. diff --git a/hgsubversion/hg_delta_editor.py b/hgsubversion/hg_delta_editor.py --- 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,