[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn cat doesn't work on moved files

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-03-27 20:49:40 CET

"SteveKing" <steveking@gmx.ch> writes:

> > Stefan, I was wrong -- this is not issue #891. It's not even a bug.
> >
> > You create subfolder/myfile.txt in revision *3*. Then you try to cat
> > it -- from revision 2. Of course that doesn't work :-). The path
> > doesn't exist in revision 2.
>
> I know that. But I would expect it to work like svn log also shows
> the log for the revisions before the move.

Yes, I think a lot of commands would benefit from the ability to
follow copy history: diff, merge, ls, pl.

It is a little complicated though, suppose things move around

 rev X: wc/foo
           wc/bar

  mv wc/foo wc/zig
  mv wc/bar wc/zag
  commit

 rev X+1: wc/zig
           wc/zag

  mv wc/zig wc/bar
  mv wc/zag wc/foo
  commit

 rev X+2: wc/foo
           wc/bar

Now if I run 'svn cat -rX wc/foo' does it follow history through the
moves to wc/bar in rev X or does it go straight to wc/foo in rev X?

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 27 20:50:29 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.