问题
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