You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ray Johnson <Ra...@ingenio.com> on 2004/10/20 16:54:48 UTC

svn cat on moved revisions

 
The command "svn cat" doesn't always seem to work when a revision has
been moved.
 
For example, say I have the following directory structure:
 
trunk
    mystuff
        foo.txt
        bar.txt
 
I then do some code reorganization so that we have:
 
trunk
    src
        foo.txt
        bar.txt
 
Now if I do a log on http://myserver/trunk/src/foo.txt I would see a log
like this:
------------------------------------------------------------------------
r29 | rayj | 2004-09-27 17:32:41 -0700 (Mon, 27 Sep 2004) | 2 lines
 
code reorg
 
------------------------------------------------------------------------
r13 | rayj | 2004-09-17 09:58:28 -0700 (Fri, 17 Sep 2004) | 3 lines
 
couple of bug fixes
added other repositories
 
------------------------------------------------------------------------
r11 | rayj | 2004-09-16 17:17:31 -0700 (Thu, 16 Sep 2004) | 2 lines
 
initial import
 
------------------------------------------------------------------------
 
Now if I do a command of "svn cat http://myserver/trunk/src/foo.txt" I
get the contents as I would expect.
However, if I do a "svn cat -r 13 http://myserver/trunk/src/foo.txt" I
get nothing.
 
At one level I think I understand why it doesn't return anything.  The
file did not exist in that location in that revision.  But from another
point of view it doesn't make sense.  "svn log" reports a historical
revision of that file exists but how would I know where it came from?
 
How can I get the old contents in some systematic way?
 
Ray

Re: svn cat on moved revisions

Posted by Ben Collins-Sussman <su...@collab.net>.
On Oct 20, 2004, at 11:54 AM, Ray Johnson wrote:
>
> How can I get the old contents in some systematic way?
>  
>

Use an svn 1.1 client.  This is a known bug in 1.0.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org