User forums > General (but related to Code::Blocks)
SVN
sethjackson:
Hi how do I set up a SVN repository on my personal PC? I assume this can be done? Basically here is what I'm working with. I have a network drive called P:\. I have created a folder called SVN this is where all my repositories will reside. Inside this SVN folder I create another folder lets call it Test. I right click on the Test folder (I have TortoiseSVN on Windows XP) and I select Create Repository here. Ok all is good. Now I try to import my project, and it fails..... Do I need to run a SVN server? I hope not....
Michael:
Hello,
If you just want to set a SVN repostory to e.g., check-out C::B sources, then you can make a new repository called e.g., SVN and then use TortoiseSVN checkout functionality. The interesting thing is that if you copy your SVN repository to another place, it is still under SVN control and you can update it with TortoiseSVN.
If you would like to have projects under SVN so that other people could access with e.g., TortoiseSVN, then I think you should make your own SVN server. Ceniza has done something similar (If I am not wrong), so that you can access his Source Formatter project by using TortoiseSVN. You can look at here.
Michael
sethjackson:
Yeah I know how to checkout....
I meant my own personal (local not accessible by anyone except me) repository.....
thomas:
--- Quote ---I have a network drive called P:\. I have created a folder called SVN this is where all my repositories will reside. Inside this SVN folder I create another folder lets call it Test. I right click on the Test folder (I have TortoiseSVN on Windows XP) and I select Create Repository here. Ok all is good. Now I try to import my project, and it fails..... Do I need to run a SVN server? I hope not....
--- End quote ---
Yes and no... depends what you want to do. If you want to access your repository via file:/// then what you have done is all you need to do, and it will certainly work (I know it does because I have done that before ;)). In all other cases, you must set up a server.
Remember, however, that there is a big, big, nasty catch with network drives. If you create a Berkeley repository on a network drive, it WILL corrupt the repository. Don't do that. Either, do not use a network drive (the "official" recommended way), or if you have to use a network drive, then use FSFS. The nasty thing about Berkeley repositories is that it may even accidentially work, but it will fail any time later, and you will lose all your data, but you won't know why.
sethjackson:
Hmm Ok I guess I need to install the SVN server then....
Navigation
[0] Message Index
[#] Next page
Go to full version