SVN_EDITOR=/usr/bin/nanothis allows sets the default svn editor to 'nano' or you can set it to the editor of your choice.
export SVN_EDITOR
Okay, say I want to set up a repository and actually edit code in the following directory
~/path/to/codeI first need to create an svn repository which can be done by executing the following
svnadmin create ~/path/to/repositoryThen I move to the directory that contains the folder of code ('importfolder') I want to initially import and execute the following
svn import importfolder file:///full/path/to/repository -m "Initial import"This import can be checked by running
svn list file:///full/path/to/repositoryI can now move to any directory where I want to check out the repository and execute the following
svn co file:///full/path/to/repository
If I want to allow remote access to the repository find the following file
~/path/to/repository/conf/svnserve.confand include the following commands
[general]where none and write can be either (none, read or write) I think and the list the users and passwords that have authorized access.
anon-access = none
auth-access = write
user=password
These files can no be checked out remotely on any machine by numerous methods, but here I list the way to use svn+ssh by executing the following command on the remote computer in the location where you want the respository checked out
svn co --username user --password password svn+ssh://hostname.host/full/path/to/repositoryThis should all be pretty close to correct, but I'm typing up something I wrote a while ago and haven't checked all these commands recently.
No comments:
Post a Comment