svn ci错误

来源:互联网 发布:js难学吗 编辑:程序博客网 时间:2024/06/06 14:21

把系统换成了10.9之后,各种问题。 用svn做个分支,提示下面的错误:

svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time configuration option was found


问题原因是: 

没有设置svn编辑器的环境变量,主要是import、commit中填写comment要用

在 终端中 sudo vim /etc/bashrc 打开文件


加入:export SVN_EDITOR=vim


如果,保存的时候,无法保存。wq! 强制保存退出


还有:

编辑完以后一般需要让配置文件立即生效,可执行命令:

source  /etc/bashrc



SVN不能提交 Error Commit Failed (details Follow): Error Authorization Failed

使用svn的时候有时候会碰到这样的错误

可是检测来检测去。服务器的配置都没有错。他也可以update但就是commit不了
Error Commit Failed (details Follow): Error Authorization Failed

你的帐号跟他的帐号在同一组的。 你的机子这边没有错,你可以commit

原来是URL 中的项目名有一个字母小写了。SVN有时候会大小写敏感。前几天都可以正常提交的

TortoiseSVN 可以使用Relocate来更改服务器的地址

编码问题-----

svn commit fail:

svn: E000022: Commit failed (details follow):
svn: E000022: Error normalizing log message to internal format
svn: E000022: Valid UTF-8 data


解决办法: 

vi ~/.subversion/config

log-encoding = gbk





0 0