changeset 455:54e57da61c1a

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.
author Michael J. Pedersen <mpedersen@datapipe.com>
date Thu, 02 Jul 2009 16:12:09 -0500
parents ae35c389cdef
children b5b4095d2993
files hgsubversion/svnmeta.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)])