Inconsistent revision in svn:externals between automatic peg update and property dialog

24 views
Skip to first unread message

Jens Christian Restemeier

unread,
Mar 3, 2023, 10:49:25 AM3/3/23
to TortoiseSVN
Hi,
I am on version TortoiseSVN 1.14.5, Build 29465 - 64 Bit , 2022/09/24 08:31:31.
There seems to be an inconsistency between how the svn:externals property dialog and the automatic peg update if you commit to an external handle the peg revision:
The automatic update seems to prefer 
-r <revision> <url>
while the properties dialog prefers
<url>@<revision>

While both are valid this can create larger changes than necessary when you use both methods to edit externals.

Would it be possible for both to use the same format?

Cheers,
Jens

Daniel Sahlberg

unread,
Jul 7, 2023, 4:16:48 PM7/7/23
to TortoiseSVN
fredag 3 mars 2023 kl. 16:49:25 UTC+1 skrev Jens Christian Restemeier:
Hi,
I am on version TortoiseSVN 1.14.5, Build 29465 - 64 Bit , 2022/09/24 08:31:31.
There seems to be an inconsistency between how the svn:externals property dialog and the automatic peg update if you commit to an external handle the peg revision:
The automatic update seems to prefer 
-r <revision> <url>
while the properties dialog prefers
<url>@<revision>

The -r <revision> is an operative revision while the @<revision> is a peg revision. The properties dialog support both. https://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html

You need an operative and a peg revision if you have renamed an object in the repository and want to refer to it using the new name (at <peg revision>) while seeing the content that was at <operative revision>. For a discussion about the differences between operative and peg revisions, please see the Subversion book: https://svnbook.red-bean.com/en/1.7/svn.advanced.pegrevs.html

In most cases it is enough to set the peg revision and leave the operative revision undefined. "Fetch HEAD revision and adjust to it" and "Adjust to HEAD revision" both seems to set the peg revision (sometimes setting the operative revision to HEAD in the GUI but this is never saved in the actual property - check with the command line client svn propget svn:externals PATH).

Kind regards,
Daniel Sahlberg
Reply all
Reply to author
Forward
0 new messages