How to check a remote project from SVN on the command line

I am trying to verify a project that has been removed from my SVN in edition 401. The project is no longer working and has been completely replaced by code rewriting, but I would like to check so that I can return to small parts of the old code while working on rewriting.

As far as I can tell, this should be as simple as checking the old path and the last good revision (400). But when I try to do this, I get an error because it is trying to use the latest version:

C:\Users\couling\workspace>svn checkout --revision=400 https://svn.domain.com/repos/trunk/OldProject Error validating server certificate for 'https://svn.domain.com:443': - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! Certificate information: - Hostname: svn.domain.com - Valid: from Tue, 11 Dec 2012 15:03:33 GMT until Wed, 11 Dec 2013 15:03:33 GMT - Issuer: Personal Certificate, Foomy Whatsit, Blah, Blah, GB - Fingerprint: 01:02:03:04:05:06:07:08:09:10:11:12:13:14:15:16:17:18:19:20 (R)eject, accept (t)emporarily or accept (p)ermanently? t svn: '/repos/!svn/bc/1418/trunk/OldProject' path not found C:\Users\couling\workspace> 

I can easily navigate to the revision 400 folder through a web browser, so in the worst case, I can still view the code, but I would prefer to have a copy of all the source files for my IDE.

For reference, I use this client version:

 C:\Users\couling\workspace>svn --version svn, version 1.6.16 (r1073529) compiled Mar 8 2011, 11:47:41 Copyright (C) 2000-2009 CollabNet. Subversion is open source software, see http://subversion.apache.org/ This product includes software developed by CollabNet (http://www.Collab.Net/). 

How to check a folder that has been deleted?

Edit

To clear up doubts .... The checkout command above uses the syntax --revision=400 , as this was the last way I wrote the command before publishing. This is a valid syntax given that the svn command uses the GNU getopt_long compatible library. The version I'm using has the following synonym: -r 400 -r400 --revision 400 --revision=400 . Different options come down to the same getopt library result.

As it happened, the reason for the last command I used before publishing was that I went through all the options to confirm that this was not related to this problem. They all had the same result.

+4
source share
2 answers

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

See "SVNBook | Peg and Online Changes" .

+8
source
  • When using an online revision, you have to write it with space : -r 400
  • You can use the PEG version of un URL instead of OR: https://svn.domain.com/repos/trunk/ OldProject@400
  • To perform an operation without user intervention (for a certificate), you can add a command

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

Samples

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

Condition: http://mayorat.ursinecorner.ru:8088/svn/Hello/branches/Greetings does not exist in the current HEAD, but is 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 the last comment, I had to get HEAD from / branches, but

>dir /b

Greetings

-1
source

All Articles