如何检查我的 svn 连接?

发布于 2024-09-01 13:38:31 字数 79 浏览 1 评论 0原文

如何检查我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

嘿咻 2024-09-08 13:38:31

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

svn ls svn://server/repo

其中列出存储库的内容(如果连接成功)。

如果您要测试凭据的有效性,其他参数(例如 --username ABC --password XYZ--non-interactive)也可能很有用。此外,如果成功的话,添加 --深度空 应该会产生空输出(对于脚本编写可能很有用)。

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.

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).

花落人断肠 2024-09-08 13:38:31

只需发出 svn log 并查看是否失败。

Simply issue svn log and see if it fails.

旧城空念 2024-09-08 13:38:31

就像 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 use svn info.

农村范ル 2024-09-08 13:38:31

只需在任何 SVN url 上调用 http get 即可,例如:

https://username:password@server/repo

Just call http get on any SVN url like:

https://username:password@server/repo
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文