有没有办法在整个存储库历史记录中更改SVN用户的用户名? [英] Is there a way to change a SVN users username through the entire repository history?

查看:101
本文介绍了有没有办法在整个存储库历史记录中更改SVN用户的用户名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的团队刚开始使用SVN时,我们所有人在提交存储库时都只使用了我们的名字,但是,由于我们的团队已经成长,我们遇到了问题,因为我们只雇用了第二个Mike.

我们想要做的是将每个人的用户名更改为与他们计算机上的用户名相同(名字的首字母+姓氏).我看到的问题是SVN历史记录仍会在提交时显示旧的用户名.

是否存在用于在存储库的整个历史记录中更改用户名的工具?

例如,我希望当前归因于Mike的所有提交都更改为msmith,一直到版本1.

我首先想到的是,我必须对转储文件进行一些解析和处理,但是使用工具会很好.

解决方案

花了很多时间,但我最终找到了一个针对SVN转储文件的perl脚本.

今天早上,我在存储库的转储上尝试了此程序,它运行正常.

这是直接链接

When my team first started out with SVN we all just used our first names when committing to the repository, however, now that our team has grown, we are running into issues because we just hired a second Mike.

What we would like to do is change everybody's usernames to be the same as the username on their computer (first name initial + last name). The issue that I'm seeing is that the SVN history will still show the old usernames on commits.

Is there a tool out there for changing usernames throughout the entire history of a repository?

For example, I would like every commit that is currently attributed to Mike to change to msmith, all the way back to revision 1.

My first thought is that I'll have to do some parsing and processing on a dump file, but a tool would be nice.

解决方案

It took a lot of looking but I eventually found a perl script that works against an SVN dump file.

I tried it this morning on a dump of my repository and it worked flawlessly.

Here is the direct link

这篇关于有没有办法在整个存储库历史记录中更改SVN用户的用户名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆