如何检查我的 svn 连接? [英] How can I check my svn connection?

查看:48
本文介绍了如何检查我的 svn 连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查我的 svn 连接?

How can I check my svn connection?

我只是想尝试连接到服务器并检查我的连接状态.之后我会做一些事情,比如检查等等.也许是另一种方式来获得它?

I just want to try to connect to server and check the status of my connection.. After that I will do something like check out and etc. well may be another way to get it?

推荐答案

如果你没有任何签出的工作副本,你可以使用

If you do not have any checked-out working copy, you can use

svn ls svn://server/repo

如果连接成功则列出存储库的内容.

which lists contents of the repository if connection is successfull.

--username ABC --password XYZ--non-interactive 等其他参数也很有用,例如:测试您的凭据有效性.此外,如果成功添加 --depth empty 应该会产生空输出(可能对脚本有用).

Other parameters like --username ABC --password XYZ and --non-interactive can be useful too if you are e.g. testing your credentials validity. Also, adding --depth empty should produce empty output if it succeeds (could be useful for scripting purposes).

这篇关于如何检查我的 svn 连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆