author_transforms with Mercurial
Greg Ward <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all --
I haven't implemented support for author_transforms yet in my new 'n
improved cvs2hg, but I will soon. But with Mercurial, the author name
is an arbitrary sequence of bytes (strongly recommended to be in
UTF-8). I believe that is true of git as well; it's only
git-fast-import that requires a "name <email>" string which is
presumably why author_transforms uses a (name, email) tuple.
The good thing about author_transform's current (name, email)
structure is that it encourages the conventional form; but the bad
thing is that it makes unconventional usage impossible. I think this
is easy to resolve by allowing author_transforms to map to tuple or
string: e.g.
{ "jblow": "Joe Blow <[email protected]>"
"jdoe": ("Jane Doe", "[email protected]") }
Then if you need to break the rules, you are free to do so. And if
you break the rules for fastimport output, you get to live with the
consequences.
Anyone mind if I implement this change to the interpretation of
author_transforms?
Greg
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=2380136
To unsubscribe from this discussion, e-mail: [[email protected]].