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

Re: copying subdirectories in subversion 1.7

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 25 Jul 2011 14:47:22 +0200

On Mon, Jul 25, 2011 at 02:27:04PM +0200, Markus Schaber wrote:
> Hi, Stefan,
>
> > Von: Stefan Sperling [mailto:stsp_at_elego.de]
>
> > On Mon, Jul 25, 2011 at 10:37:36AM +0200, Markus Schaber wrote:
> > > Hi, Stefan,
> > >
> > > Von: Stefan Sperling [mailto:stsp_at_elego.de]
> > > >> [Detaching of subdirectories of working copies]
> > > > Honestly, we simply don't know how many people need this.
> > >
> > > Strictly speaking, it is not "needed" by anyone - one can always use
> a
> > > fresh checkout, and then manually merge all the changes.
> >
> > 1.7 has 'svn patch' so transferring local changes to a new checkout
> can be
> > done in an automated way.
> >
> > cd ~/wc/subtree
> > svn diff > /tmp/subtree-changes.diff
> > cd ~
> > svn co $URL/subtree other_wc
> > svn patch /tmp/subtree-changes.diff other_wc
> >
> > This works fine even for new directories, deleted ones, etc.
> > Caveat: It cannot do copies yet -- those will show up as simple adds.
>
> So moves and renames will lose their history?

Yes. This is because the patch format cannot represent copies and moves.
But how often do you split out a subtree that has copied or moved items
within it? Can't you commit such changes from the existing working copy
subtree before splitting it off?
Received on 2011-07-25 14:48:09 CEST

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.