svn:警告:OSX 10.11 El Capitan上的W170000有两个svn版本

时间:2015-11-17 11:57:49

标签: macos svn

更新Mac OSX 10.11 El Capitan命令后

/usr/bin/svn info  ssh://svn@SERVER.COM///var/svn/repos/project/XYZ --force-interactive

返回:

svn: warning: W170000: Unrecognized URL scheme for 'ssh://svn@SERVER.COM/var/svn/repos/project/XYZ'

安装的版本是:

/usr/bin/svn --version
svn, version 1.7.20 (r1667490)
   compiled Oct  5 2015, 14:53:48

Copyright (C) 2014 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

经过一番阅读后,我发现ra_svn需要SASL支持。 所以我安装了第二个带有Homebrew

的SVN
brew install svn

安装在

/usr/local/bin/svn

版本是:

/usr/local/bin/svn --version
svn, version 1.9.2 (r1703836)
   compiled Nov 15 2015, 11:43:08 on x86_64-apple-darwin15.0.0

Copyright (C) 2015 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.8
  - handles 'http' scheme
  - handles 'https' scheme

The following authentication credential caches are available:

* Plaintext cache in /Users/USERNAME/.subversion
* Mac OS X Keychain

但是电话

/usr/local/bin/svn info  ssh://svn@SERVER.COM///var/svn/repos/project/XYZ --force-interactive

仍然会返回:

svn: warning: W170000: Unrecognized URL scheme for 'ssh://svn@SERVER.COM/var/svn/repos/project/XYZ'

什么错了?

当我调用/ usr / local / bin / svn而不是/ usr / bin / svn时,存储库访问(RA)模块是否存储在库路径中(如插件)和错误的模块?

需要一些想法,尝试什么。感谢。

1 个答案:

答案 0 :(得分:1)

URL方案应为svn+ssh,以便通过ssh访问Subversion存储库。即。

/usr/local/bin/svn info  svn+ssh://svn@SERVER.COM///var/svn/repos/project/XYZ --force-interactive