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

Possible bug: svn update doesn't respect the 'depth' property

From: Miro Kropáček <miro.kropacek_at_gmail.com>
Date: Mon, 8 Jul 2013 09:06:30 +1000

Hello,

I'm not subscribed to the list. I'd like to ask about one issue I'm having.
Let's say I've got a tree like this:

server/svn/trunk/software
server/svn/trunk/software/user
server/svn/trunk/software/wicked_filenames
server/svn/trunk/documentation
server/svn/trunk/huuuge_subtree_i_really_dont_want_to_checkout
:
:

and I'd like to checkout only 'server/svn/trunk/software/user'. Of course,
I could do

svn checkout server/svn/trunk/software/user

or even:

mkdir -p ~/projects/svn/trunk/software/user
svn checkout server/svn/trunk/software/user
~/projects/svn/trunk/software/user

but in either way, svn root will be placed in the 'user' directory what is
not what I want because in the future I might be interested to checkout the
huge subtree or the wicked_filenames might become windows-friendly
filenames in the future.

I'm not sure if a scenario like this is even supported but this is what I
tried:

svn co --depth empty server/svn/trunk
cd trunk
svn up --depth empty software
cd software
svn up user

... and it seems to work, hooray. Now, in 'software' and 'trunk', svn info
gives me: "Depth: empty", in 'user' it gives me nothing about the depth, I
assume that means 'normal'.

And finally, my question :) If I go to 'trunk' or 'software' and do 'svn
update' ... why the complete tree is updated (fetched from the server,
including the omitted subtrees) ? What's the meaning of "Depth: empty" then?

Regards,
Miro Kropacek
Received on 2013-07-08 07:46:41 CEST

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

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