由于缺少消息,svn命令不会执行?

时间:2012-10-11 15:57:54

标签: svn version-control repository branch

我正在尝试按照http://dryice.name/blog/freebsd/svn-make-the-branches-directory-before-make-a-branch/上的说明在我的SVN存储库的分支中创建一个新目录。

svn mkdir http://svn.example.com/repos/calc/branches \ -m "make the branches directory to hold all the branches"

但我收到错误:

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 are set, and no 'editor-cmd' run-time configuration option was found

我看到了这个问题:Commit failed error when committing new version to svn repository我确实添加了-m选项,但仍然收到了上述错误。

该命令有什么问题,我该如何解决?

1 个答案:

答案 0 :(得分:1)

事实证明,如果我颠倒顺序并首先添加-m选项,那就可以了!

所以命令应该是:

svn -m "make the branches directory to hold all the branches" http://svn.example.com/repos/calc/branches