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

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

问题描述

如何检查svn连接?

我只想尝试连接到服务器并检查连接状态。之后,我将做一些事情

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.

其他参数,例如-用户名ABC-密码XYZ -非交互式也很有用。测试您的凭证有效性。另外,添加-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天全站免登陆