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

Re: Merge question

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Wed, 16 Jan 2008 16:43:41 +0100

On Wednesday 16 January 2008, Brian Erickson wrote:
> We've been debating this a little here and the documentation (at least
> to me) is not clear on the subject.
>
> Are these two commands equivalent?
>
> 1) svn merge http://server/trunk@123 http://server/trunk@132 .
> 2) svn merge -r123:132 http://server/trunk .

No and you could try this using e.g. diff!

The difference is the starting point. Using peg revisions (case 1) you are
only saying that you are taking the thing referenced via the path and
revision as starting point, but taking its current (HEAD) state still:

   svn merge -rHEAD:HEAD http://server/trunk@123 http://server/trunk@132 .

The second version uses the thing referenced via the path and the HEAD
revision as starting point, but then using different revisions of it:

   svn merge -r123:132 http://server/trunk@HEAD .

(I think those commands I gave are equivalent, but I'm not 100% sure)

Note that if trunk_at_123 has been moved somewhere else in later revisions, you
will still be able to follow it with a peg revision without having to specify
its current path which might not exist at all. This is what peg revisions are
all about.

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH
Geschäftsführer: Michael Wöhrmann, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
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. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-16 16:44:03 CET

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.