Click to See Complete Forum and Search --> : subversion question
carbohydrate
06-12-2005, 04:19 AM
i thought id ask a subversion question in this forum since svn is used primarlily by devs.
svn import does not make the source of import into the working copy... is there any way to do this? i wanted to try putting /etc under rev control.
thanks!
goon12
06-12-2005, 11:34 AM
I'm guessing you already did the svnadmin create, to create your repository?
I'm not really sure what you mean when you say "svn import does not make the source of import into the working copy" but
check out the below link
http://svnbook.red-bean.com/en/1.0/re12.html
carbohydrate
06-13-2005, 02:18 AM
yes, svn create was done already.
"I'm not really sure what you mean when you say "svn import does not make the source of import into the working copy" but "
sorry about the confusion, let me elaborate a bit...
suppose i have /data that i want to bring into revision control (or /etc, or whatever). I first 'svnadmin create /path/to/repos' and then 'svn import /data file:///path/to/repos' to import all my files into subv. now according to the manual, /data is not the working copy... to get a working copy, i have to 'svn checkout file:///path/to/repos' into some other dir like say /data-svn. i would like /data to become the working copy. is there any way to do this? i cannot checkout back to /data because there are files already present so svn fails.
AdamZ
06-13-2005, 04:45 PM
One way that would work is to delete/move the directory somewhere else before checking it out. The only problem is that some files may be in use, so you might have to shutdown some programs, or something.$ mv /data /data-backup
$ svn checkout file:///path/to/repos /dataThen verify the data is all intact, and delete /data-backup.
bwkaz
06-13-2005, 06:38 PM
You can move and delete files even if they're in use on Linux. If you delete an in-use file, it won't be removed from the disk until the last program that has it open closes it. But it will be gone from the directory structure.
If you move it (rename the directory), that's not a problem even if files are open.
The only problem might be if your svn client requires some file(s) in /etc before it'll work right -- because if that happens, then moving /etc will make the svn client fail, and you won't be able to check out the repository. I don't know for sure if that happens or not.