Subclipse 提交作者

发布于 2024-12-20 12:08:51 字数 422 浏览 1 评论 0原文

好吧,我使用 SVN 在 Subclipse 中提交的作者姓名意外地从我的用户名(我过去 3 年一直使用)更改为“svnsrvc”,这看起来很神奇。

最近发生的与 Eclipse 或 Subversion 相关的唯一系统更改是:我的 Windows 密码已过期,我必须输入新密码才能访问存储库;我们在 Subversion 服务器上安装了 VisualSVN 的更新。除此之外没有任何改变。

我曾经尝试过:打造一个新的工作场所;删除 .keyring 文件;使用带有新工作区的新版本 Eclipse。没有什么可以改变这种行为。我无法将存储库登录名更改为“svnsrvc”,因为我什至不知道密码。

我的操作系统是Win7,使用带有Subclipse插件和cfEclipse插件的Indigo Java EE。

以前有人见过这样的事情吗?我原以为作者的名字永远不能改变。

Okay, so the author name that my commits happen under in Subclipse using SVN has unexpectedly changed from my username (which I have been using for the last 3 years) to 'svnsrvc', seemingly magically.

The only recent system changes related to Eclipse or Subversion that have occurred are: my Windows password had expired, and I had to put in my new password in order to access the repo; and we installed an update for VisualSVN on our subversion server. Other than that nothing has changed.

I have tried: making a new workplace; deleting the .keyring file; using a new version of Eclipse with a new workspace. Nothing changes this behaviour. There is no way I changed my repo login to 'svnsrvc' because I don't even know the password.

My OS is Win7, using Indigo Java EE with Subclipse plugin and cfEclipse plugin.

Has anyone ever seen anything like this before? I had thought that the author name could not be changed, ever.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陌伤ぢ 2024-12-27 12:08:51

一种可能性是更改服务器的挂钩,例如 pre-revprop-change,设置为放置“错误”的作者姓名(或 Apache http 中的更改服务器)。
请参阅“更改 svn 作者属性”:

转到存储库中的“hooks”目录(例如/var/svn/my_repo/hooks/),复制pre-revprop-change .tmplpre-revprop-change,编辑 pre-revprop-change 文件以确保启用设置作者(或见下文),脚本可执行文件(chmod +x pre-revprop-change) 就完成了。

至少检查一下这是否可以修复作者姓名错误的修订(或者通过 TortoiseSVN< /a>):

 $ svn propset --revprop -r revision_number svn:author your_username

One possibility would be a change in the hooks of the server, like a pre-revprop-change, set to put the 'wrong' author name (or a change in the Apache http server).
See "Changing svn author property":

Go to the 'hooks' directory in your repository (eg. /var/svn/my_repo/hooks/), copy pre-revprop-change.tmpl to pre-revprop-change, edit the pre-revprop-change file to make sure setting the author is enabled (or see below), make the script executable (chmod +x pre-revprop-change) and you're done.

Check at least if this works to fix the revisions with the wrong author name (or do it through TortoiseSVN):

 $ svn propset --revprop -r revision_number svn:author your_username
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文