<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The problem is that you're reading an ancient version of the book,
which predates some important UI changes we made to 'svn copy' (and
other subcommands). The correct command (which is shown in this
more up-to-date version of the book:
<a class="moz-txt-link-freetext" href="http://svnbook.red-bean.com/en/1.7/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.resurrect">http://svnbook.red-bean.com/en/1.7/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.resurrect</a>)
would instead be:<br>
<blockquote>svn cp <a class="moz-txt-link-freetext" href="http://localhost:8090/repos/path/to/file@1042">http://localhost:8090/repos/path/to/file@1042</a> .<br>
</blockquote>
<br>
<div class="moz-cite-prefix">On 01/30/2013 10:20 AM, Guillaume
MULLER wrote:<br>
</div>
<blockquote cite="mid:51093A32.4080804@presans.com" type="cite">Hi,
<br>
<br>
I'm trying to recovers some files I have deleted.
<br>
<br>
According to:
<br>
<a class="moz-txt-link-freetext" href="http://svnbook.red-bean.com/en/1.1/ch04s04.html#svn-ch-4-sect-4.3">http://svnbook.red-bean.com/en/1.1/ch04s04.html#svn-ch-4-sect-4.3</a>
<br>
<br>
svn cp --revision should do the work.
<br>
<br>
Unforrtunately, like many people I found on forums, I encounter a
bug in SVN: it looks for the files in the /current/ revision.
<br>
<br>
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...
<br>
<br>
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.
<br>
<br>
Regards,
<br>
<br>
GM
<br>
<br>
---
<br>
svn cp --revision 1042 <a class="moz-txt-link-freetext" href="http://localhost:8090/repos/path/to/file/">http://localhost:8090/repos/path/to/file/</a> .
<br>
svn: E160013: '/repos/!svn/bc/1045/path/to/file' path not found
<br>
<br>
As you can see, I'm asking for rev 1042 and svn looks for 1045
(current)...
<br>
<br>
svn, version 1.7.5 (r1336830)
<br>
compiled Sep 28 2012, 11:22:04
<br>
<br>
_______________________________________________
<br>
svnbook-dev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:svnbook-dev@red-bean.com">svnbook-dev@red-bean.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://www.red-bean.com/mailman/listinfo/svnbook-dev">http://www.red-bean.com/mailman/listinfo/svnbook-dev</a>
<br>
</blockquote>
<br>
</body>
</html>