You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "T. Wassermann" <ma...@tobias-wassermann.de> on 2006/06/02 07:53:52 UTC
svn cat -r Bug in 1.3.1?
Hi,
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@2
it works correct - and i get the file in correct version.
Is this a known "feature"?
Best regards
Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn cat -r Bug in 1.3.1?
Posted by Ryan Schmidt <su...@ryandesign.com>.
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@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