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

AW: copying subdirectories in subversion 1.7

From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Mon, 25 Jul 2011 14:27:04 +0200

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?

> > But in my experience, a lot of users (including me) actually made
use
> > of the "copying a subdir just works" pattern.
>
> Good to know.

My experiences cover several companies. In all of them, I had coworkers
using this pattern (as well as myself).

This is not representative, however.

Best regards

Markus Schaber

___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 |
Fax +49-831-54031-50

Email: m.schaber@3s-software.com | Web: http://www.3s-software.com
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects:
http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner |
Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
Received on 2011-07-25 14:27:53 CEST

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