SVN bad behaviour makes what is written in the book wrong.
danielsh at apache.org
Wed Feb 27 14:02:17 CST 2013
Guillaume MULLER wrote on Wed, Jan 30, 2013 at 16:20:18 +0100:
> I'm trying to recovers some files I have deleted.
> According to:
> svn cp --revision should do the work.
No. Your use case wants the peg revision (@...) syntax, not the
operative revision (--revision) syntax.
For more question about your use-case, please ask on
users at subversion.apache.org
(I'll let someone else comment about the bug in the book, and whether
it's applicable to the 1.7/1.8 versions of the book)
P.S. *bump* to that issue about adding <link rel='canonical'> or
whatever the syntax was, so that people stop stumbling upon the
> Unforrtunately, like many people I found on forums, I encounter a bug in
> SVN: it looks for the files in the /current/ revision.
> So the tip you give does not work. I had to do a complete co of the old
> revision in a temp dir, and then manually copy the files...
> I still don't understand why the --revision flag work perfectly for svn
> co and svn ls and not for svn cp, but its acutally the case.
> svn cp --revision 1042 http://localhost:8090/repos/path/to/file/ .
> svn: E160013: '/repos/!svn/bc/1045/path/to/file' path not found
> As you can see, I'm asking for rev 1042 and svn looks for 1045 (current)...
> svn, version 1.7.5 (r1336830)
> compiled Sep 28 2012, 11:22:04
> svnbook-dev mailing list
> svnbook-dev at red-bean.com
More information about the svnbook-dev