Svn

ref & doc

 * http://svnbook.red-bean.com/en/1.6/svn-book.html -- svn 1.6 document

svn help
svn help usage: svn [options] [args] 'svn help ' for help on a specific subcommand 'svn --version' to see the program version and RA modules Available subcommands: add blame (praise, annotate, ann) cat ...

svn help #eg. svn help swtich
 * help for subcommand

svn switch
svn switch http://10.90.0.160/svn/mobileapps-spotlight/branches/i24 spotlight/
 * switch working copy to different url within same repository.

svn merge
svn co http://10.90.0.160/svn/mobileapps-news-pro-html/branches/2.0 mobileapps-news-pro-html-2.0 svn merge --accept postpone -r 358773:364929 http://10.90.0.160/svn/mobileapps-news-pro-html/branches/1.4 mobileapps-news-pro-html-2.0 svn status mobileapps-news-pro-html-2.0 svn resolved ... svn commit -m "manual merge html1.4 to 2.0" mobileapps-news-pro-html-2.0
 * manual merge html5 1.4 to 2.0
 * 1) manual resolved conflcts

svn diff for 2 branches
svn diff http://REPOS/trunk http://REPOS/branches/B

svn resolve tree conflict
svn resolve --accept working -R


 * resolve asks svn to resolve the conflict
 * accept working specifies to keep your working files
 * -R stands for recursive

resolve local edit, incoming delete upon update
$ svn st !    C foo >  local delete, incoming delete upon update !    C bar >  local delete, incoming delete upon update

$ touch foo bar

$ svn st A +  C foo >  local edit, incoming delete upon update A +  C bar >  local edit, incoming delete upon update

$ svn st ?      foo ?      bar

$ rm foo bar $ svn st

svn empmty checkout
svn co --depth=empty http://myserver/myrepos/mydirectory
 * you can limit the amount of files that do get checked out with the --depth

svn blame
svn blame someurl

svn log -v -r
svn log -v -r rev. http://repo-url
 * get revision detail info

svn status code

 * http://gotofritz.net/blog/howto/svn-status-codes/

svn checkout specify revision file
svn checkout @revision --depth empty cd svn up 