I have root access to a server hosting a SVN
resposito开发者_如何学Gory (via SSH
).
I need to do some heavy log crunching, basically I have to fetch the revision of each diff
using:
svn diff -c ARG
where ARG
is the revision number. I have to fetch this information for all the revisions, which takes time if I query the server remotely.
So my question is, if I can SSH
into the server, is there anyway I can fetch the logs locally rather than fetching them remotely?
If you get access to the server, you can use svn in file system mode, to query locally, using file:// url. You can check relevant manual page for more information
Yes. You can checkout
the repository right on the server and perform any operations you need.
When you'll check it out - specify local path with path:///
prefix
You may use always a url e.g:
svn diff <url> -rREV:REV
if you need to use ssh you may add the svn+ssh
protocol.
svn diff svn+ssh://my-username@my-server/my-home/my-repo -rREV:REV
Edit: You do not need to checkout the repository
Another thing would be according to your comment. If you want to have an operation which only uses local logs you may use a distributed version control system like git. Git e.g. supports direct access to remote svn repositories. Then everything will be mirrored.
精彩评论