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

Re: svn mv is loosing revision history

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-09-30 19:32:59 CEST

On Fri, 2005-09-30 at 08:40 +0000, Frank Niedermann wrote:
> Marc Haisenko <haisenko <at> webport.de> writes:
> > On Friday 30 September 2005 09:52, Frank Niedermann wrote:
> > > moved testdir to testdir_moved
> > > Is this a bug?
> >
> > No, because at revision 2 there was no testdir_moved. It was called testdir at
> > that revision. testdir_moved only exists since r5 in your example.
>
> Well that makes sense. But is there also a function that can move or copy a
> directory with all relations in history (revisions)?

It hasn't lost the relations.

It's just that by default (and this has been argued to death. I
personally believe it is the wrong default behavior), the "peg revision"
is the HEAD, instead of the revision passed by -r.

Thus, you want svn co -r 2 file:///svn/repos/testdir_moved_at_2

That tells it you want to checkout, from revision 2, the file that is
currently named testdir_moved, using whatever name it had in revision 2.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 30 19:35:04 2005

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

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