Svn and disconnected edits
I am using svn (VisualSVN Server in specific with VisualSVN and thus TortoiseSVN). Is it possible to work in an offline scenario? E.g. code is checked in, and then modify the solution without checking out the relevant file?
What (if anything) will 开发者_如何学JAVAgo wrong?
You can work offline with local repository through file://. First you need to create local repo, sync with remote, then switch working dir to the local repo, after some work you can sync them back with remote and switch working dir back to remote. This is described here.
You can continue working, but ...
Some svn actions still can be completed while you're not connected to repo. For example - svn diff, to see your local changes, svn st. This is possible since while you checkout, svn save copy of each checkout file in .svn.
Actions that require access to repo can not be accomplished - e.g. svn commit.
No, SVN requires access to a centralized server. You cannot queue up commits offline for later transmission to the server.
You may find what you need with a distributed version control system such as Mercurial or Git. They allow you to work offline as if you were connected, and then synch your changes when you eventually connect.
精彩评论