SVN Update doesn’t always get new directories

July 27th, 2009

Problem:  You run “svn update” on a directory where you *know* there are new folders.   Svn tells you “At revision X” where X = whatever the head revision is (i.e., “everything’s up to date!”) – but that new folder didn’t show up. 

This is because the default is for svn to update folders down to the working copy depth: only check for updates in folders that you’ve already got.  New folders beyond that are beyond the depth and won’t be updated.

To get all of those folders, in Tortoise SVN select “SVN Update to Revision”, and change the update depth to “Fully Recursive.”  Or from the command line, “svn update –depth infinity”

[Note: I may have gotten some or all of this completely wrong, this is just my notes as I’m trying to understand how svn is doing what it’s doing.]

Tony Rasa Source Control

  1. Raleigh Buckner
    July 28th, 2009 at 06:56 | #1

    I ran into this problem yesterday. Great timing on the post!

  2. August 7th, 2009 at 10:12 | #2

    I should add that there are some bugfixes (or more features?) related to these issues in recent updates, so if you’re having problems a good first step is to update to the latest version of svn or tortoise or whatever client you’re using.

Comments are closed.