# HG changeset patch # User Michael J. Pedersen # Date 1246569129 18000 # Node ID 54e57da61c1acaf8b290adecde84ff50444c6cf6 # Parent ae35c389cdefa32c0e0e3bc806eb6adfb3bfbdac This patch fixes, partially, an issue with tagpaths. I found that, when using the tagpaths variable, I would actually get fatal exceptions when the clone was happening. This line prevents the fatal exception from occurring. diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py --- a/hgsubversion/svnmeta.py +++ b/hgsubversion/svnmeta.py @@ -480,7 +480,8 @@ class SVNMeta(object): for op, tag, r in sorted(tags, reverse=True): if op == 'add': if fromtag: - tagged = node.hex(self.tags[fromtag]) + if fromtag in self.tags: + tagged = node.hex(self.tags[fromtag]) else: tagged = node.hex(self.revmap[ self.get_parent_svn_branch_and_rev(r+1, b)])