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

Re: Update to revision always updates externals to HEAD

From: Ben Fritz <fritzophrenic_at_gmail.com>
Date: Mon, 5 Dec 2016 11:39:21 -0600

On Fri, Dec 2, 2016 at 6:59 AM, Olivier Sannier <obones_at_free.fr> wrote:
>
> Thanks for this, but none of the externals are tied to a particular
> revision, neither peg nor operative.
> This is why I find this behavior quite surprising.

If none of the externals are tied to a peg or operative revision, then
updating their containing directory to ANY revision will ALWAYS update
the externals themselves to HEAD.

In other words, you're using them wrong, if you want the ability to
check out the externals as they existed at a specific revision of the
containing project. They are acting as designed.

The SVN book
(http://svnbook.red-bean.com/en/1.8/svn.advanced.externals.html) very
explicitly recommends peg revisions for exactly the scenario you're
having trouble with:

> You should seriously consider using explicit revision numbers in all
> of your externals definitions. Doing so means that you get to decide
> when to pull down a different snapshot of external information, and
> exactly which snapshot to pull. Besides avoiding the surprise of
> getting changes to third-party repositories that you might not have
> any control over, using explicit revision numbers also means that as
> you backdate your working copy to a previous revision, your externals
> definitions will also revert to the way they looked in that previous
> revision, which in turn means that the external working copies will be
> updated to match the way they looked back when your repository was at
> that previous revision. For software projects, this could be the
> difference between a successful and a failed build of an older
> snapshot of your complex codebase.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3196096

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-12-05 18:39:53 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.