如何使用Emacs 23.1内置集成设置SVN密码?

时间:2012-04-13 22:03:18

标签: svn emacs passwords integration

我在CentOS 6.2上做了一个项目,分发提供了Emacs 23.1.1,使用svnserver进行了subversion。

我无法在任何地方找到如何设置存储库访问的密码。 [这里有另一个问题(SVN for Emacs: how do you set author name and save password?),但对我的情况没有可用的答案。]

背景

由于客户端交付要求,我需要尽可能少地添加 - 尽可能使用yum install,必要时查找非yum RPM,并作为最后手段手动安装。

我正在使用Syntevo的SmartSVN(非发行版添加的一个示例)从分发中使用subversion(SVN)。它还要求我安装一个较新的Java。

到目前为止,我还没有安装其他任何东西。

这一切都正常,但能够直接从我在Emacs中的编辑会话中提交确实很好。

错误:

当我使用Ctl-x v v提交时,我得到提交消息缓冲区。

Ctl-c Ctl-c失败并显示一条消息: 办理登机手续失败。

消息显示

...
Press C-c C-c when you are done editing.
Enter a change comment.  Type C-c C-c when done
Checking in /home/keywords2/www/html/kw2Show.php...
vc-svn-checkin: Check-in failed
...

vc 显示

Authentication realm: <svn://localhost:3690> 47300edb-8fa2-460e-889a-ad1513dbfcdf
Password for 'keywords2': Authentication realm: <svn://localhost:3690> 47300edb-8fa2-460e-889a-ad1513dbfcdf
Username: svn: Commit failed (details follow):
svn: Can't read stdin: End of file found

1 个答案:

答案 0 :(得分:4)

我假设Emacs在内部使用命令行客户端,您也可以直接使用它。

SVN在store-auth-creds中存储凭据 - 具体取决于属性$HOME/.subversion/config。如果SVN已经不知道密码,它将只询问密码。因此,从命令行调用SVN一次并输入密码。之后,您可以在没有密码的情况下使用SVN - 从命令行以及从Emacs。

使用简单的命令尝试,例如svn up

相关问题