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

Re: svn_client_status5 and depth_as_sticky

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Fri, 08 Jul 2011 11:39:31 -0400

On 07/08/2011 10:57 AM, Stefan Küng wrote:
> Hi,
>
> svn_client_status5 has a parameter depth_as_sticky. According to the doc
> string:
>
> If depth_as_sticky is set and depth is not svn_depth_unknown, then the
> status is calculated as if depth_is_sticky was passed to an equivalent
> update command.
>
> this should report *everything* there is, even items that are excluded in
> the working copy (svn_depth_exclude) if also 'update' is true and the passed
> depth is svn_depth_infinity.
>
> This used to work a while ago, but now it does not return anything that
> isn't in the working copy already anymore.
>
> I don't know when this stopped working since I don't use this feature very
> often, but I'm now testing sparse working copies and so I've noticed that it
> stopped working.
>
> May I suggest to also add this option to the CL client? currently 'svn st'
> does not accept a 'set-depth' or equivalent parameter.

--set-depth is a data-changing option, and 'svn st' doesn't change data.
That option would be entirely inappropriate for use with the status
operation. The log message of the commit which added this new API parameter
(r986510) understood this:

   Following up on r957917, make it possible to switch of the ambient depth
   filter when using svn_client_status5, like it is possible with
   svn_client_update3().

   Currently we don't expose this information to the svn client, as using
   --set-depth on svn status would be illogical.

I think the natural UI hook would be to bind this to the --depth option,
allowing an explicitly-set --depth to be honored by the "remote" side of an
'svn status --show-updates', while svn_depth_unknown would continue to mean
"only show me stuff that matches my working copy's ambient depth".

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2011-07-08 17:40:09 CEST

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