changeset 726:8d36054b04ed

keep variables more local, add some whitespace
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 06 Oct 2010 15:18:05 +0200
parents c787147fa3b7
children e830b592917b
files hgsubversion/svnmeta.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
@@ -621,13 +621,16 @@ class SVNMeta(object):
                 branches.setdefault(branch, []).append((op, tag, srcrev))
 
         for b, tags in branches.iteritems():
-            fromtag = self.get_path_tag(self.remotename(b))
+
             # modify parent's .hgtags source
+
             parent = self.repo[self.get_parent_revision(rev.revnum, b)]
             if '.hgtags' not in parent:
                 src = ''
             else:
                 src = parent['.hgtags'].data()
+
+            fromtag = self.get_path_tag(self.remotename(b))
             for op, tag, r in sorted(tags, reverse=True):
                 if op == 'add':
                     if fromtag: