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

Re: svn:externals revision pegging problem

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Tue, 11 Mar 2008 16:20:06 +0100

On Tuesday 11 March 2008, Baranowski, Daniel wrote:
> I have an external in my trunk, the property looks like this:
>
> MyExternal -r 125 https://ourserver/path/to/repo/sub/folder
>
>
> Now, when in trunk I do an update, I get the MyExternal directory at
> revision 125. This is great, this is what I want!
>
>
> Now, if I cd into MyExternal and do an update, I get HEAD. This is not
> great, and this is not what I want :(
>
>
> I can go back and for between trunk and MyExternal doing update and each
> time it will update to either revision 125 or HEAD depending on where
> I'm doing the update from.

The 'external' just tells SVN to maintain a working copy for the given URL and
revision in the current folder. Updating in trunk therefore updates the WC to
the given URL and revision. However, inside, this is just a normal working
copy, so if you update inside, you are not updating to a specific revision
but to HEAD instead.

> Is there something that I'm doing wrong, is this just how it works, or
> is this a bug?

I'd say this is as expected, though I agree it could be better. ;)

Suggestion: if r125 is something special, you could give this revision a tag
and then direct the external to it. It would mean that the external still
always is updated to head, but the content shouldn't change.

Replace
 MyExternal -r 125 https://ourserver/path/to/repo/sub/folder
with
 MyExternal https://ourserver/path/to/repo/sub/tags/folder-v125

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-03-11 16:41:07 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.