Commits

Dirkjan Ochtman committed cfefeef

rename TagMap to Tags, to free up the TagMap name

Comments (0)

Files changed (3)

hgsubversion/maps.py

             return author.rsplit('@', 1)[0]
 
 
-class TagMap(dict):
+class Tags(dict):
     """Map tags to converted node identifier.
 
     tag names are non-empty strings.

hgsubversion/svncommands.py

     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
 

hgsubversion/svnmeta.py

             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)
                     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)