changeset 459:7151f63ab33c

tags: fix a bug triggered by copies from non-branch-roots I have not included a test case because I can't iron out the specifics of what causes this bug. This allows jquery to finish cloning successfully. Further inspection of the jquery history around 4400:4410 should allow construction of a meaningful test case.
author Augie Fackler <durin42@gmail.com>
date Sun, 05 Jul 2009 22:01:38 -0500
parents 974102998578
children ff69f1855086
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
@@ -340,13 +340,13 @@ class SVNMeta(object):
                     file, branch = self.split_branch_path(src_p)[:2]
                     if file is None:
                         # some crazy people make tags from other tags
-                        file = ''
                         from_tag = self.is_path_tag(src_p)
                         if not from_tag:
                             continue
                         if from_tag in self.tags:
                             ci = self.repo[self.tags[from_tag]].extra()['convert_revision']
                             src_rev, branch, = self.parse_converted_revision(ci)
+                            file = ''
                     if t_name not in added_tags and file is '':
                         added_tags[t_name] = branch, src_rev
                     elif file: