changeset 456:b5b4095d2993

Second fix required for our tags to work.
author Michael J. Pedersen <mpedersen@datapipe.com>
date Thu, 02 Jul 2009 16:37:33 -0500
parents 54e57da61c1a
children 8ad6dfd51f72
files hgsubversion/svnmeta.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
@@ -349,7 +349,7 @@ class SVNMeta(object):
                         added_tags[t_name] = branch, src_rev
                     elif file:
                         t_name = t_name[:-(len(file)+1)]
-                        if src_rev > added_tags[t_name][1]:
+                        if t_name in added_tags and src_rev > added_tags[t_name][1]:
                             added_tags[t_name] = branch, src_rev
                 elif (paths[p].action == 'D' and p.endswith(t_name)
                       and t_name in self.tags):