3 ms·
I haven't used SVN in about 2 years, but when I was using it I remember branching taking about 10minutes. It had to redownload the entire working directory agai
by shawabawa3 13y ago
I haven't used SVN in about 2 years, but when I was using it I remember branching taking about 10minutes. It had to redownload the entire working directory again I believe, which made it essentially pointless - I only branched when I was going to be doing a huge amount of work.
Have they fixed that?
- mikeash 13y agoI think you must have been doing it wrong, because I don't think this has ever been the case. In any event, it's plenty fast now: the branch is a "copy" operation on the server (which takes no time since Subversion does everything as copy-on-write) followed by re-pointing your local copy. Since there are no changes, it fetches no new data.
- csmuk 13y agoCreating a branch is instant (well < 5 seconds). Switching branches depends on how much change there is between the previous branch and the one you are switching to. It basically sends all the files that have changed. On our solution which is about 120,000 files, it takes about 10-25 seconds on HTTPS/WebDAV protocol. It's fast enough. I switch probably 2-3 times a day. You can check each branch out separately if you want but this isn't necessary and probably is the cause of the pain you had.