# HG changeset patch # User Sean Farley # Date 1395678043 18000 # Node ID 4f31a0a6fc867c976a1cb6dbf8bad03886fefdf6 # Parent 8a1bf7d011c300b27fe9fdb3446686f403ef0887 svncommands: use meta.tags instead of duplicating code diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py --- a/hgsubversion/svncommands.py +++ b/hgsubversion/svncommands.py @@ -92,10 +92,8 @@ def _buildmeta(ui, repo, args, partial=F revmap.write('1\n') revmap.writelines(sofar) last_rev = -1 - tagfile = os.path.join(meta.metapath, 'tagmap') - if not partial and os.path.exists(maps.Tags.filepath(repo)) : - os.unlink(maps.Tags.filepath(repo)) - tags = maps.Tags(repo) + if not partial and os.path.exists(meta.tagfile): + os.unlink(meta.tagfile) layout = None layoutobj = None @@ -172,7 +170,7 @@ def _buildmeta(ui, repo, args, partial=F # number. tagging = int(convinfo[40:].split('@')[1]) tagrev = max(tagged, tagging) - tags[tag] = node.bin(ha), tagrev + meta.tags[tag] = node.bin(ha), tagrev # check that the conversion metadata matches expectations assert convinfo.startswith('svn:')