# HG changeset patch # User Michael J. Pedersen # Date 1246570653 18000 # Node ID b5b4095d29935f5129cacfc252cea2a37377e444 # Parent 54e57da61c1acaf8b290adecde84ff50444c6cf6 Second fix required for our tags to work. diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py --- 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):