[英]Getting error trying to commit using Subversion on Mac OS X
Using Subversion I try to commit with: 使用Subversion,我尝试提交:
svn ci dir/filename
And I get this: 我得到这个:
svn: system('emacs svn-commit.tmp') returned 256
What does this mean? 这是什么意思? How can I to fix it?
我该如何解决?
Possibly related: I'm seeing similar errors on vim
when setting SVN_EDITOR
without the qualifying the path. 可能相关:在不限定路径的情况下设置
SVN_EDITOR
时,我在vim
上看到类似的错误。 From your error output, I see you have done the same with emacs
. 从错误输出中,我看到您对
emacs
做了相同的操作。 Try export SVN_EDITOR=/usr/bin/emacs
. 尝试
export SVN_EDITOR=/usr/bin/emacs
。 Doing the same with /usr/bin/vim
eliminated the 256 status codes. 使用
/usr/bin/vim
进行相同的操作可以消除256个状态代码。
I can't explain why. 我无法解释原因。 Seems like a bug to me.
对我来说似乎是个虫子。
See this 2009 discussion about vim on OSX 10.5. 请参见本关于OSX 10.5 VIM 2009年的讨论。
When you try to commit something to Subversion, it needs a commit comment. 当您尝试向Subversion提交内容时,它需要提交注释。 Unless you pass a commit comment on the command line (using
-m message
), Subversion will automatically launch your preferred editor. 除非您在命令行上(使用
-m message
)传递提交注释,否则Subversion将自动启动您的首选编辑器。 It appears that your editor is emacs, but there is a problem launching it. 您的编辑器似乎是emacs,但是启动它时出现问题。
Either fix emacs, or set your EDITOR
or SVN_EDITOR
environment variables to a different editor that actually works. 修复emacs,或将
EDITOR
或SVN_EDITOR
环境变量设置为实际可用的其他编辑器。
Looks like svn is not able to launch emacs for editing the comments for the commit. 看起来svn无法启动emacs来编辑提交的注释。
If you just hava a few words of comments for your commit you could use: 如果您只是对提交发表一些评论,则可以使用:
svn ci dir/filename -m "Made some small changes"
another option might be to use the --editor-cmd
option of svn. 另一个选择可能是使用svn的
--editor-cmd
选项。 see svn help ci
for details. 有关详细信息,请参见
svn help ci
。
googling svn: system('emacs svn-commit.tmp') returned 256
shows the following link as the first result. 谷歌搜索
svn: system('emacs svn-commit.tmp') returned 256
显示以下链接为第一个结果。
http://jjinux.blogspot.com/2008/03/vim-weird-os-x-105-problem.html http://jjinux.blogspot.com/2008/03/vim-weird-os-x-105-problem.html
It sounds like SVN tried to invoke emacs to allow you to edit the commit log message, and something failed. 听起来好像SVN试图调用emacs来允许您编辑提交日志消息,但失败了。
Workaround: use the -m flag to specify a commit message on the command line: 解决方法:使用-m标志在命令行上指定提交消息:
svn ci dir/filename -m "log message here"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.