Mercurial > hg
diff hgext/convert/__init__.py @ 5373:6aba1835a7b3
convert: pass the order of the revmapfile to the converter_source
The entries in this file are supposed to be topologically sorted and
this may be useful for a converter_source.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 04 Oct 2007 23:21:37 -0300 |
parents | 6b6104430964 |
children | e710874247d1 |
line wrap: on
line diff
--- a/hgext/convert/__init__.py Thu Oct 04 19:47:22 2007 -0500 +++ b/hgext/convert/__init__.py Thu Oct 04 23:21:37 2007 -0300 @@ -53,11 +53,14 @@ self.authorfile = None self.mapfile = filemapper + self.maporder = [] self.map = {} try: origrevmapfile = open(self.revmapfile, 'r') for l in origrevmapfile: sv, dv = l[:-1].split() + if sv not in self.map: + self.maporder.append(sv) self.map[sv] = dv origrevmapfile.close() except IOError: @@ -238,7 +241,7 @@ try: self.source.before() self.dest.before() - self.source.setrevmap(self.map) + self.source.setrevmap(self.map, self.maporder) self.ui.status("scanning source...\n") heads = self.source.getheads() parents = self.walktree(heads)