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

Re: ignore ancestry and record only

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Tue, 02 Oct 2012 09:35:19 +0200

Am 01.10.2012 21:07, schrieb chroyer:
> I was wondering if the following scenario makes sense, or if this is
> asking for problems.
>
> * I am regularly merging differences between 2 trees (I won't go in
> too much details here...those tree are not really under my control; I
> put those them in the tags area, and I want to merge the changes between
> 2 consecutive such snapshots. In my case, I can not just use a branch
> and update it with the latest version - the tree gets modifications
> before being tagged).

It's unfortunate that you don't want to go into details here. It sounds
like a typical "vendor branch" (search the SVN book!). Here, we are
using several external libraries. When upstreams releases a new version
(snapshot), we load it into the repository (using svn_load_dirs) and
then apply some local modifications (like integration into our own build
system but also bugfixes). When a new version comes in, we do the same,
merging the changes from the older version if appropriate.

> * to merge the differences between 2 snapshots, I am using
> --ignore-ancestry (otherwise I see a lot of files being "replaced").

This might be due to the way that you load the new version.

> * since --ignore-ancestry makes me loose the merge info, before I
> commit the merge results, I merge again but this time with --record-only
> (and without --ignore-ancestry)
>
> * now I can commit and it seems that I have the best of both worlds...
[...]
> Does anyone have experience with similar scenario?

I really think that what you are doing is equivalent to maintaining a
vendor branch. Check the docs, they have examples for this use case,
and/or provide a bit more info if you still have questions.

Good luck!

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Received on 2012-10-02 09:36:07 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.