Choose items ... and no externals

24 views
Skip to first unread message

H. Niemann

unread,
Nov 28, 2017, 5:23:14 AM11/28/17
to TortoiseSVN
Hello!

If a directory contains several subdirectories and one external reference to a directory, then I can

* check out the full directory with all it's children and get the external as well
* "choose items ..." and pick only some of these directories, but then the external is missing.

Is there a way to create a sparse working copy that includes the externals, or even better,
that allows me to choose whether or not I want the externals?

(TSVN 1.9.4)

With best regards
Hartmut


Stefan

unread,
Nov 28, 2017, 1:29:42 PM11/28/17
to TortoiseSVN
After checking out the directories without the externals, you can right-click on folders that contain externals and use the "update to revision" entry to fetch the externals as well.

Stefan

H. Niemann

unread,
Nov 29, 2017, 4:11:04 AM11/29/17
to TortoiseSVN
Hello Stefan!
Unfortunately this didn't work for me.

If a directory contains several subdirectories not all of which shall be checked out into the working copy,
I see the following log (only beginning)

Command: Checkout from https://myhost.com/repos/acs64/septa, revision HEAD, Unknown depth, Externals included 
Updating: D:\PRJ\2017-11-29_svn_ext_chooseitems\septa-without-septadir 
Updated: D:\PRJ\2017-11-29_svn_ext_chooseitems\septa-without-septadir 
Completed: At revision: 1122 
Command: Sparse update CCU, depth 'Only this item' 
Updating: D:\PRJ\2017-11-29_svn_ext_chooseitems\septa-without-septadir\CCU 
Added: D:\PRJ\2017-11-29_svn_ext_chooseitems\septa-without-septadir\CCU 
Completed: At revision: 1122 
Command: Sparse update CCU/branches, depth 'Fully recursive' 
Updating: D:\PRJ\2017-11-29_svn_ext_chooseitems\septa-without-septadir\CCU\branches 
Added: D:\PRJ\2017-11-29_svn_ext_chooseitems\septa-without-septadir\CCU\branches 
Completed: At revision: 1122 
Command: Sparse update CCU/trunk, depth 'Fully recursive' 
Updating: D:\PRJ\2017-11-29_svn_ext_chooseitems\septa-without-septadir\CCU\trunk 
Added: D:\PRJ\2017-11-29_svn_ext_chooseitems\septa-without-septadir\CCU\trunk 
Added: D:\PRJ\2017-11-29_svn_ext_chooseitems\septa-without-septadir\CCU\trunk\CPU 
[...] 

Although the first line lists "externals included", it doesn't seem to include externals for this directory!

This looks like SVN is iterating over each child of directory https://myhost.com/repos/acs64/septa,
but the external directory reference in this node does not seem to get processed.
(Externals that are deeper in the tree are processed just fine, as far as I can see.)

The repo browser shows and handles externals almost like directories.
Could the "Choose items ..." dialog be made behave like the repo browser, and would the underlying
checkout / update engine be able to select externals to be included / not to be included?

With best regards
Hartmut 

Stefan

unread,
Dec 1, 2017, 8:53:19 AM12/1/17
to TortoiseSVN


On Wednesday, November 29, 2017 at 10:11:04 AM UTC+1, H. Niemann wrote:
Hello Stefan!

Am Dienstag, 28. November 2017 19:29:42 UTC+1 schrieb Stefan:


On Tuesday, November 28, 2017 at 11:23:14 AM UTC+1, H. Niemann wrote:
Hello!

If a directory contains several subdirectories and one external reference to a directory, then I can

* check out the full directory with all it's children and get the external as well
* "choose items ..." and pick only some of these directories, but then the external is missing.

Is there a way to create a sparse working copy that includes the externals, or even better,
that allows me to choose whether or not I want the externals?


After checking out the directories without the externals, you can right-click on folders that contain externals and use the "update to revision" entry to fetch the externals as well.

Stefan

Unfortunately this didn't work for me.

If a directory contains several subdirectories not all of which shall be checked out into the working copy,
I see the following log (only beginning)

Command: Checkout from https://myhost.com/repos/acs64/septa, revision HEAD, Unknown depth, Externals included 


You still leave the checkout depth the same. When doing sparse checkouts, the checkout depth is not "Fully recursive" but usually just "Only this item" or "Immediate children". To get the externals you also have to change the checkout depth to "Fully recursive" and make the depth sticky.

Stefan

Reply all
Reply to author
Forward
0 new messages