如何检查我的 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您没有任何签出的工作副本,则可以使用
其中列出存储库的内容(如果连接成功)。
如果您要测试凭据的有效性,其他参数(例如
--username ABC --password XYZ
和--non-interactive
)也可能很有用。此外,如果成功的话,添加--深度空
应该会产生空输出(对于脚本编写可能很有用)。If you do not have any checked-out working copy, you can use
which lists contents of the repository if connection is successfull.
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 log 并查看是否失败。
Simply issue
svn log
and see if it fails.就像 Johannes 已经告诉过的那样,您可以使用 svn log 来检查连接。如果您想查看哪些设置适用于当前工作副本,请使用 svn info。
Like Johannes already told you can use
svn log
to check the connection. If you want to see which settings apply to your current working copy usesvn info
.只需在任何 SVN url 上调用 http get 即可,例如:
Just call http get on any SVN url like: