diff hgext/convert/common.py @ 21076:5236c7a72a2d

convert: backout b75a04502ced and 9616b03113ce - tagmap Tagmap solves a very specific use case. It would be better to have a more generic solution than to have to maintain this forever. Tagmap has not been released yet and removing it now will not break any backward compatibility contract. There is no test coverage for tagmap but it seems like the same can be achieved with a (relatively) simple and much more powerful custom extension: import hgext.convert.hg def f(tag): return tag.replace('some', 'other') class source(hgext.convert.hg.mercurial_source): def gettags(self): return dict((f(tag), node) for tag, node in in super(source, self).gettags().items()) def getfile(self, name, rev): data, flags = super(source, self).getfile(name, rev) if name == '.hgtags': data = ''.join(l[:41] + f(l[41:]) + '\n' for l in data.splitlines()) return data, flags hgext.convert.hg.mercurial_source = source
author Mads Kiilerich <madski@unity3d.com>
date Wed, 16 Apr 2014 01:09:49 +0200
parents d7e78e6d97bd
children 23b24d6a70c8
line wrap: on
line diff
--- a/hgext/convert/common.py	Tue Apr 15 11:53:10 2014 -0400
+++ b/hgext/convert/common.py	Wed Apr 16 01:09:49 2014 +0200
@@ -204,8 +204,7 @@
         mapping equivalent authors identifiers for each system."""
         return None
 
-    def putcommit(self, files, copies, parents, commit, source,
-                  revmap, tagmap):
+    def putcommit(self, files, copies, parents, commit, source, revmap):
         """Create a revision with all changed files listed in 'files'
         and having listed parents. 'commit' is a commit object
         containing at a minimum the author, date, and message for this