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

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

问题描述

当我的团队第一次开始使用 SVN 时,我们在提交到存储库时都只使用我们的名字,但是,现在我们的团队已经发展壮大,我们遇到了问题,因为我们刚刚聘请了第二个 Mike.

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.

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

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?

例如,我希望当前归因于 Mike 的每个提交都更改为 msmith,一直回到修订版 1.

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.

推荐答案

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

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.

这里是直接链接

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

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