changeset 728:cfefeefad199

rename TagMap to Tags, to free up the TagMap name
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 06 Oct 2010 16:50:10 +0200
parents e830b592917b
children 467b95348e6a
files hgsubversion/maps.py hgsubversion/svncommands.py hgsubversion/svnmeta.py
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/maps.py
+++ b/hgsubversion/maps.py
@@ -97,7 +97,7 @@ class AuthorMap(dict):
             return author.rsplit('@', 1)[0]
 
 
-class TagMap(dict):
+class Tags(dict):
     """Map tags to converted node identifier.
 
     tag names are non-empty strings.
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
@@ -102,9 +102,9 @@ def rebuildmeta(ui, repo, args, **opts):
     branchinfo = {}
     noderevnums = {}
     tagfile = os.path.join(svnmetadir, 'tagmap')
-    if os.path.exists(maps.TagMap.filepath(repo)):
-        os.unlink(maps.TagMap.filepath(repo))
-    tags = maps.TagMap(repo)
+    if os.path.exists(maps.Tags.filepath(repo)):
+        os.unlink(maps.Tags.filepath(repo))
+    tags = maps.Tags(repo)
 
     layout = None
 
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
@@ -67,7 +67,7 @@ class SVNMeta(object):
             self.branches = pickle.load(f)
             f.close()
         self.prevbranches = dict(self.branches)
-        self.tags = maps.TagMap(repo)
+        self.tags = maps.Tags(repo)
         if os.path.exists(self.tag_locations_file):
             f = open(self.tag_locations_file)
             self.tag_locations = pickle.load(f)
@@ -413,7 +413,7 @@ class SVNMeta(object):
                     return node.hex(self.revmap[tagged])
                 tag = fromtag
             # Reference an existing tag
-            limitedtags = maps.TagMap(self.repo, endrev=number-1)
+            limitedtags = maps.Tags(self.repo, endrev=number-1)
             if tag in limitedtags:
                 return limitedtags[tag]
         r, br = self.get_parent_svn_branch_and_rev(number - 1, branch, exact)