[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: Michael Price <mprice_at_atl.lmco.com>
Date: 2003-03-27 23:22:43 CET

Robert Pluim wrote:
> Philip Martin writes:
> >
> > I asked "straight to wc/foo in rev X" or "follow history to wc/bar".
> >
> > > I do a checkout of rev X. I know that a checkout of a single file is
> > > not possible in subversion, but svn cat should work like that.
> >
> > Lets try again
> >
> > rev X: wc/foo contains text "foo"
> > wc/bar contains text "bar"
> >
> > rev X+1: mv wc/foo wc/zig
> > mv wc/bar wc/zag
> > commit
> >
> > rev X+2: mv wc/zig wc/bar
> > mv wc/zag wc/foo
> > commit
> > wc/foo contains text "bar"
> > wc/bar contains text "foo"
> >
> > So the working copy contains wc/foo at rev X+2 with contents "bar".
> > When I run 'svn cat -rX wc/foo' do I get contents "foo" or contents
> > "bar"?
>
> I vote for "bar". To me that reads "In rev X, what did the filesystem
> object that is called wc/foo in my wc contain? (if it existed at
> all)", and thus the rename history should be followed back in time.

I see specifying a working copy as a shortcut to prevent having to type
a URL. I don't see it as having different semantics. Having the same
command which "specifies a revision" give different answers depending on
whether or not I give a wc path or a URL is just too wacky.

In any event, there is extra wackiness here as an object "foo" exists at
revision X. Your vote bothers me :)

Michael

---------------------------------------------------------------------
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:25:48 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.