[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: Tobias Ringstrom <tori_at_ringstrom.mine.nu>
Date: 2003-03-27 23:23:50 CET

On 27 Mar 2003, Philip Martin wrote:

> 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?

I can imagine needing both methods. How about changing -r to follow
history through the moves to wc/bar in rev X, and implement -R to go
straight to wc/foo in rev X as -r does now?

That way we get the following meanings of -r and -R:

-rX: First locate the object using the specified name in the wc, then
     trace history backwards to revision X. If an URL is used, the HEAD
     version of the repo is used to identify the object whose history is
     traced back to rev X.

-RX: In version X of the repository, locate the object by the specified
     name.

By the way, is this really the first time this issue comes up? It would
surprise me if the long time developers haven't though hard about these
issues already.

/Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 27 23:24:59 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.