You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Baranowski, Daniel" <db...@LSIJAX.COM> on 2008/03/11 15:05:19 UTC

svn:externals revision pegging problem

Hi All,

 

I've checked the lists and I haven't seen any one with this same
problem, so I'm assuming I'm doing something wrong.

 

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.

 

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

 

Thanks!

Daniel

 

**********************************************************************************************
Disclaimer - This email and any files transmitted with it are proprietary and may contain privileged or copyright information. You must not present this message to another party without 
gaining permission from the sender. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to notify 
us. If you have received this message in error, please notify the sender immediately, and delete this email from your system. We do not guarantee that this material is free from viruses or any 
other defects although due care has been taken to minimize the risk. eSafe scanned this email for viruses, vandals and malicious contentAny views expressed in this message are those of 
the individual sender, except where the sender specifically states them to be the views of LSI.
**********************************************************************************************

RE: Re: svn:externals revision pegging problem

Posted by "Baranowski, Daniel" <db...@LSIJAX.COM>.
> 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.

I completely forgot that's how subversion worked. I just expected the
revision to be sticky for some reason without even thinking about it.

> 
> > 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
> 

Using your suggestion, that's pretty much exactly what I did. There were
a lot of files, so I keep having to remind myself that copies are cheap!

I agree that the whole externals thing could use some polish. It's
probably good that I switched to using a tag instead of a revision, that
way when we tag releases, we'll have the correct external code, rather
then HEAD. That's another area externals could be better.

Anyways, thanks for the help!

Regards,
Daniel
**********************************************************************************************
Disclaimer - This email and any files transmitted with it are proprietary and may contain privileged or copyright information. You must not present this message to another party without 
gaining permission from the sender. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to notify 
us. If you have received this message in error, please notify the sender immediately, and delete this email from your system. We do not guarantee that this material is free from viruses or any 
other defects although due care has been taken to minimize the risk. eSafe scanned this email for viruses, vandals and malicious contentAny views expressed in this message are those of 
the individual sender, except where the sender specifically states them to be the views of LSI.
**********************************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: svn:externals revision pegging problem

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org