[Python-checkins] hgsubversion (pymigr): Really drop tags that are marked empty in the tagmap

antoine.pitrou python-checkins at python.org
Thu Feb 24 19:51:02 CET 2011


antoine.pitrou pushed 19fc4050d75e to hgsubversion:

http://hg.python.org/hgsubversion/rev/19fc4050d75e
changeset:   789:19fc4050d75e
branch:      pymigr
tag:         tip
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Thu Feb 24 19:50:58 2011 +0100
summary:
  Really drop tags that are marked empty in the tagmap
(this is the same test as in committags())

files:
  hgsubversion/svnmeta.py

diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
@@ -603,6 +603,8 @@
     def movetag(self, tag, hash, rev, date):
         if tag in self.tags and self.tags[tag] == hash:
             return
+        if tag in self.tagmap and not self.tagmap[tag]:
+            return
 
         # determine branch from earliest unclosed ancestor
         branchparent = self.repo[hash]

--
Repository URL: http://hg.python.org/hgsubversion


More information about the Python-checkins mailing list