如何检查我的svn连接? [英] How can I check my svn connection?
问题描述
如何检查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屋!