Stefan Sperling wrote on Sat, Jun 11, 2011 at 09:21:57 +0200:
> On Sat, Jun 11, 2011 at 12:24:12AM +0300, Daniel Shahaf wrote:
> > pbu...@tigris.org wrote on Thu, Jun 02, 2011 at 08:00:38 -0700:
> > > There's no easy way to determine the shallow structure of a working copy 
> > > (beyond
> > > writing a script that parses the output of 'svn info -R').
> > > 
> > 
> > That would be useful script, I think :-)
> > 
> > There is:
> >     sqlite3 .svn/wc.db 'SELECT local_relpath, depth FROM nodes WHERE depth 
> > != '"'infinity'"
> > but it's not really something we can suggest (without wrapping it) to
> > people who don't know the db schema.
> 
> Maybe we should add something like
>   svn info --only-list-items-with-ambient-depth-lower-than-infinity
> 
> Can't think of a better name right now...
> 
>   svn info --show-shallow-subtrees, maybe?
> 

svn info --shallow

> This would suppress the usual output, and just list the relpaths of
> these nodes and their ambient depths.
> 

So... how would you implement it?  As a new changelist (implemented
under the hood as 'svn info --cl svn:shallow') or depth case (extending
svn_depth_t; not sure this can be done), or directly as an
svn_boolean_t only_shallow  parameter to svn_client_info3()?

> See also http://subversion.tigris.org/issues/show_bug.cgi?id=3910
> which is about making 'svn status' show this information.
> If svn info had a better way to show this information we don't need 
> status to do it.

svn status --shallow

Instead of showing the non-infinity depth value, simply including only
the non-infinity-depth'd items inthe output might suffice?


Note though that 'svn status --shallow --depth=empty' makes sense --- it
means "Don't recurse into those non-infinity-depth items that you're
about to show me" :-).

Reply via email to