On Jun 2, 2006, at 09:53, T. Wassermann wrote:
> i've got a little problem with the revision-option (-r // --
> revision) using svn cat.
>
> There is a little test repository with this history:
>
> - in revision 2 i've added two files: test1.txt and test2.txt
> - in revision 3 i've removed test2.txt
> - in revision 4 i've modified test1.txt
>
> Now i would do this: Get the content of test2.txt in revision 2 -
> without any checkout of this file. So i'll use svn cat - exactly:
>
> svn cat -r 2 svn://..../test2.txt
>
> So this should return the content of test2.txt-file in revision 2 -
> but i only get the error message:
>
> svn: File not found: Revision 4, path '/test2.txt'
>
> I've told svn cat, i want to get the revision 2 content - but it
> will deliver the revision 4 (HEAD) to me (and test2.txt is not
> available in this version...)
>
> If i use
>
> svn cat svn://..../test2.txt_at_2
>
> it works correct - and i get the file in correct version.
>
> Is this a known "feature"?
Yes. You've discovered exactly how Subversion is designed to work,
and what the difference is between a peg revision and an operative
revision. You can read more about it in the book:
http://svnbook.red-bean.com/en/1.2/svn.advanced.pegrevs.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 2 11:43:43 2006