How can I check my svn connection?

十年热恋 提交于 2019-12-04 15:55:37

问题


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?


回答1:


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




回答2:


Simply issue svn log and see if it fails.




回答3:


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.



来源:https://stackoverflow.com/questions/2809173/how-can-i-check-my-svn-connection

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!