How to check out a deleted project from an SVN on the command line

家住魔仙堡 提交于 2019-12-05 17:41:48

svn co --depth=infinity https://svn.domain.com/repos/trunk/OldProject@400

See "SVNBook | Peg and Operative Revisions".

  1. When you use Operative Revision, you have to write it with space: -r 400
  2. You can use PEG-revision un URL instead of OR: https://svn.domain.com/repos/trunk/OldProject@400
  3. In order to perform operation without user-intervention (for cert) you can add to command

... --non-interactive --trust-server-cert

Samples

because OP insists insists on being right instead of RTFM and try

Precondition: http://mayorat.ursinecorner.ru:8088/svn/Hello/branches/Greetings doesn't exist in current HEAD, but was in r16

svn co -r 16 http://mayorat.ursinecorner.ru:8088/svn/Hello/branches/Greetings
svn: E160013: '/svn/Hello/!svn/rvr/37/branches/Greetings' path not found

svn co http://mayorat.ursinecorner.ru:8088/svn/Hello/branches/Greetings@16
A    Greetings\Hello.txt
 U   Greetings
Checked out revision 16.

svn co -r=16 http://mayorat.ursinecorner.ru:8088/svn/Hello/branches/
svn: E205000: Syntax error in revision argument '=16'
  • According to last comment I had to get HEAD of /branches, but

>dir /b

Greetings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!