admin
create a repository
- svnadmin create /home/brad/svnfolder
You get this message: B_RUNRECOVERY: Fatal error, run database recovery
- Do this: svnadmin recover /path/to/repos (as root)
client
adding files
- svn import -m "importing a project" . /home/brad/svnfolder/projectname/trunk
- svn import -m "importing a project" . svn+ssh://user@www.x.com/home/brad/svnfolder/projectname/trunk
what's in the repository?
- svn list path/file
- svn list svn+ssh://user@www.x.com/home/brad/svnfolder
history of a file
diff revisions of a file
- svn diff -rHEAD local/path/filename
diff local version with last checked in...
- svn diff -r10 local/path/filename
diff local version with revision 10
- svn diff -r21:20 svn+ssh://server/path/filename
diff two versions in the repository
revert to a previous version of a file
- svn log filename - figure out the rev you want
- svn co -r rev filename
- I think you must resolve the conflicts here: cp file.xxx.rev file.xxx; svn resolved filename
- svn commit
create a branch
svn copy http://svn.example.com/repos/calc/trunk \
http://svn.example.com/repos/calc/branches/my-calc-branch \
-m "Creating a private branch of /calc/trunk."