Slow remote SVN. Fix?
I'm working with a very remote SVN that is pretty slow. My internet connection is good but the distance plays its part. It's not that slow, I can work. But it pisses me off when every diff 开发者_运维百科takes a second or two.
Is there a way to create a proxy SVN locally that constantly downloads the remote one?
Should I use local git or mercurial? They can bind to a SVN and can clone it.
I need something that doesn't need much effort.
You can create a local SVN mirror that stays in sync with the main repository, but create it as a write-through proxy, which means that when you try to commit the change actually gets forwarded to the master server then your server gets a copy of the change.
More info here: Mirror SVN Repository [Write-through proxying]
As far as I remember Subversion keeps the original (checked out/updated) file locally and performs the diffs locally. An svn diff
does not involve network. A proxy would be difficult but you think to mirror the repository locally.
I don't think that a proxy SVN server has been done, since this would basically mean that a distributed version control system would have to be implemented, which is outside SVN's scope. git or mercurial are your best choices, since they support these features out of the box.
精彩评论