Mercurial > hg
diff hgext/convert/convcmd.py @ 8377:29f4f0d66cd5
convert: adding branchmap functionality to convert extension
author | Michael J. Pedersen <m.pedersen@icelus.org> |
---|---|
date | Wed, 13 May 2009 15:03:31 -0400 |
parents | 46293a0c7e9f |
children | 057e96fe2955 |
line wrap: on
line diff
--- a/hgext/convert/convcmd.py Wed May 13 22:42:40 2009 +0200 +++ b/hgext/convert/convcmd.py Wed May 13 15:03:31 2009 -0400 @@ -91,6 +91,7 @@ self.authorfile = self.dest.authorfile() self.splicemap = mapfile(ui, opts.get('splicemap')) + self.branchmap = mapfile(ui, opts.get('branchmap')) def walktree(self, heads): '''Return a mapping that identifies the uncommitted parents of every @@ -225,6 +226,7 @@ def cachecommit(self, rev): commit = self.source.getcommit(rev) commit.author = self.authors.get(commit.author, commit.author) + commit.branch = self.branchmap.get(commit.branch, commit.branch) self.commitcache[rev] = commit return commit