svn externals not working
Asked Answered
T

5

3

I don't claim to know anything about svn, but I thought I understood how externals work.

I'm making a new project and i want my lib folder to have an external to some other project (svn location). I've done this plenty of times before and never had an issue, am I just having a Friday moment?

  1. I created the following folders:

    /myproj

    /myproj/lib

    under a folder already checked out.

  2. I svn added and committed them, then updated the parent folder to make sure everything was good.

  3. I right clicked -> tortoise -> properties on the lib folder and added my svn external to the path I want (which definitely exists): "MyExternalFolderName http://path.to/svn/location"
  4. i committed the lib folder
  5. when i update the lib folder, usually id expect to see it update the external, but nothing happens. it just says "completed."

What have I forgotten?

Edit: countless reboots, recheckouts and reinstalled have not fixed it.

Triode answered 8/5, 2009 at 13:46 Comment(1)
I haven't worked with svn externals, but I'd be tempted to do a full checkout to see if that adds the files you're expecting.Feedback
T
-1

Thanks for your help but it looks like TortoiseSVN-1.6.1.16129-win32-svn-1.6.1 is bugged. Great. Their tigris site is also down. Brilliant. 2.5 hours wasted.

Worked around it by making the folder structure and externals i need through the repro browser.

Triode answered 8/5, 2009 at 15:34 Comment(0)
D
2

There is a known bug in TortoiseSVN 1.6.1 where the depth of a newly added folder is set to "empty".

This results in update not working, unless you explicitly update the problematic folder once with the "TortoiseSVN - Update to Revision..." dialog where you can set the depth back to "fully recursive".

edit: TortoiseSVN 1.6.2 has just been released

Denier answered 9/5, 2009 at 10:11 Comment(0)
M
1

If you are using Sparse Directory checkout (custom selection of files), try following command:

svn update --depth=infinity svn_dir_name

If you don't have command line tools available try

TortoiseSVN -> Update to revision... -> Update Depth = Fully recursive, Make depth sticky = turn off

More details here.

Mailable answered 28/4, 2016 at 12:25 Comment(1)
This frustrated the heck out of me, was working fine on a folder, but not on an other, couldn't figure out why...Apollus
P
0

I don't think you have forgotten anything. I think this is a bug in Tortoise; maybe a caching issue.

Do a clean checkout of your repository and it will start working after that.

Perimeter answered 8/5, 2009 at 13:54 Comment(0)
P
0

number 3:

the property format is:

http://repo/svn/location    MyExternalFolderName

I always advise to use the ^ symbol instead of http://repo/svn because that is a lot easier, works well and is a lot easier to type.

Petrifaction answered 8/5, 2009 at 13:57 Comment(2)
The SVN red book says they are like the original poster had it: svnbook.red-bean.com/en/1.1/ch07s04.htmlPerimeter
reading the 1.5 version of the manual more carefully, they have examples showing both ways round! the ^ syntax shows <url><folder> which is how I use it. Try with the ^ 'cos that works and I have had issues with explicit urls in the externals property.Petrifaction
T
-1

Thanks for your help but it looks like TortoiseSVN-1.6.1.16129-win32-svn-1.6.1 is bugged. Great. Their tigris site is also down. Brilliant. 2.5 hours wasted.

Worked around it by making the folder structure and externals i need through the repro browser.

Triode answered 8/5, 2009 at 15:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.