How do I query status of update sticky depth in svn, set by --set-depth?

576 views Asked by At

So let's say I've changed my "sticky depth" of a working copy directory to 'immediates', with

svn update --set-depth immediates my_dir

(Something related to sparse dirs.)

How do I determine this status of my_dir? Eg. I forgot which depth did I set, how can I check / test it? I've tried with svn info -v . in the parent with an exclude -d dir, but I could not see any info on it at all.

2

There are 2 answers

3
Lazy Badger On BEST ANSWER

Yes, svn info is the right way. Just see at output, Depth key and compare values

>svn co URL --depth files
...
>svn info
...
Depth: files
...

and after update

>svn up --set-depth immediates
...
>svn info
...
Depth: immediates
...
0
holger On

The way to go is svn info, then look for Depth: ....

Excluded directories are tricky. They are excluded, i.e. not considered. Some SVN clients will show excluded directories with svn info -R, but that is not reliable (e.g. SVN 1.6 does not show it). Run svn ls (or svn ls|grep '/$') to get a list of all directories and compare that list with the actual directories and the output of svn st. If the directory is not present in your working copy and the status does not show it, then it is excluded.