如何使用Emacs 23.1内置集成设置SVN密码? [英] How can I set the SVN password with Emacs 23.1 built-in integration?

查看:228
本文介绍了如何使用Emacs 23.1内置集成设置SVN密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在CentOS 6.2上做一个项目,配置提供的Emacs 23.1.1和使用svnserver的subversion。



我无法找到如何设置存储库访问的密码。 [这里有另一个问题(用于Emacs的SVN:您如何设置作者姓名并保存密码?),但对我的情况没有可用的答案。]



背景: / strong>



由于客户交付要求,我需要添加尽可能少的额外安装 - 尽可能使用yum安装,找到非必要的RPM,如果需要,手动安装。



我使用Syntevo的SmartSVN(一个非-distro添加)。它还要求我安装一个较新的Java。



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



这是所有的工作,但肯定会很好,直接从我的编辑会议在Emacs。



错误SEEN: / p>

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



Ctl-c Ctl -c失败并显示一条消息:
签入失败。



消息显示

  ... 
完成编辑后按Cc Cc。
输入更改评论。完成时键入Cc Cc
签入/home/keywords2/www/html/kw2Show.php ...
vc-svn-checkin:入住失败
...

vc 显示

 认证领域:< svn:// localhost:3690> 47300edb-8fa2-460e-889a-ad1513dbfcdf 
'keywords2'的密码:认证领域:< svn:// localhost:3690> 47300edb-8fa2-460e-889a-ad1513dbfcdf
用户名:svn:提交失败(详细信息):
svn:无法读取stdin:找到文件结束


解决方案

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

SVN存储凭据 - 取决于 $中的属性 store-auth-creds HOME /的.subversion /配置。如果SVN已经不知道,SVN将会要求输入密码。所以,从命令行调用SVN一次并输入密码。之后,您可以使用没有密码的SVN - 从命令行以及Emacs。



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


I am doing a project on CentOS 6.2 with the distribution supplied Emacs 23.1.1 and subversion using svnserver.

I cannot find anywhere how to set the password for repository access. [There is another question here about this (SVN for Emacs: how do you set author name and save password?) but no usable answer for my circumstances.]

BACKGROUND:

Due to client delivery requirements I need to add as little extra to the installation as possible - using yum install wherever possible, finding non-yum RPMs if necessary, and manually installing as a last resort.

I'm using subversion (SVN) from the distribution with Syntevo's SmartSVN (one example of a non-distro addition). It also required me to install a newer Java.

So far I have not had to install anything else.

This is all working but it sure would be nice to be able to commit directly from my editing sessions in Emacs.

ERRORS SEEN:

When I use Ctl-x v v to commit, I get the commit message buffer.

Ctl-c Ctl-c fails with a message: Check-in failed.

Messages shows

...
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 shows

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

解决方案

I assume that Emacs is using the command line client internally, and you can also use it directly.

SVN stores the credentials - depending on the property store-auth-creds - in $HOME/.subversion/config. SVN will ask for the password only, if it doesn't know it already. So, invoke SVN once from the command line and enter the password. Afterwards, you can use SVN without password - from the command line as well as from Emacs.

Try it with a simple command, e.g. svn up.

这篇关于如何使用Emacs 23.1内置集成设置SVN密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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