简体   繁体   English

cvs2svn cvs2git: 将 cvs 用户映射到 github 用户

[英]cvs2svn cvs2git: map cvs users to github users

I used cvs2git to convert 1 cvs repo to git and push it to github.我使用 cvs2git 将 1 个 cvs repo 转换为 git 并将其推送到 github。 Everything works except that I don't see any contributors for my repo on github.一切正常,除了我在 github 上没有看到我的 repo 的任何贡献者。 I am wondering if there is a way to bring all the users from cvs and map them to github users.我想知道是否有办法将所有用户从 cvs 中提取出来并将它们映射到 github 用户。

If you are ok with converting the repository again, you should use the author_transforms field in the options file.如果您可以再次转换存储库,则应使用选项文件中的author_transforms字段。

Here is the example from the example options file I linked to:这是我链接到的示例选项文件中的示例:

author_transforms={
    'jrandom' : ('J. Random', 'jrandom@example.com'),
    'mhagger' : 'Michael Haggerty <mhagger@alum.mit.edu>',
    'brane' : (u'Branko Čibej', 'brane@xbc.nu'),
    'ringstrom' : 'Tobias Ringström <tobias@ringstrom.mine.nu>',
    'dionisos' : (u'Erik Hülsmann', 'e.huelsmann@gmx.net'),

    # This one will be used for commits for which CVS doesn't record
    # the original author, as explained above.
    'cvs2git' : 'cvs2git <admin@example.com>',
    }

The example file has more details.示例文件有更多详细信息。

If you need to keep the existing repo in github, you may be able to do some form of rewriting of the commit history, but I don't know anything about that.如果您需要在 github 中保留现有的 repo,您​​可以对提交历史进行某种形式的重写,但我对此一无所知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM