由于登录失败,SVN Checkout 失败

SVN Checkout failed because of logon failure

我正在尝试使用 file:// 方法对位于不同服务器上的文件夹使用 Tortoise SVN 进行 SVN 检出。而不是这样做,它只会给我错误:

Unable to connect to a repository at URL

file://xxxxxxxxxxx/svnrep/xxx/trunk

Unable to open an ra_local session to URL

Can't open file '\xxxxxx\svnrep\xxx\trunk\format': Logon failure: unknown user name or bad password.

有什么问题吗?

如果您在连接到主机服务器时遇到问题,请尝试以下操作:

  1. 在您选择的文件夹中执行 TortoiseSvn-checkout。
  2. 按存储库 url 输入字段旁边的“...”按钮。
  3. 在文件 selection window 中,输入 \\SERVER_NAME 然后按 ENTER.
  4. 出现提示时,输入您的网络凭据并选中 "remember my credentials"。
  5. 浏览到您的存储库并select它。
  6. 返回 SVN 结帐 window 再次按相同的“...”。
  7. 您正在浏览您的 SVN 存储库。
  8. 照常结账。

注: 在 file:/// 上使用 SVN 不是最佳方式,但即使网络出现故障也不会破坏您的 SVN 存储库。 SVN 创建一个事务,然后在完成后将其提升为修订版。最坏的情况是您最终会在 SVN 数据库中得到一个未提交的事务,但您的存储库仍然可以正常运行。要清理这些失败的交易,请参阅 http://svnbook.red-bean.com/en/1.6/svn.reposadmin.maint.html#svn.reposadmin.maint.diskspace.deadtxns