You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Simon Large <sl...@slarge.plus.com> on 2005/05/20 13:36:39 UTC

Need svn status API for directory only

Hi folks,

When svn_client_status2 is called for a WC directory, there is no way to
get the status for that directory only. Getting status for a directory
without its children might seem pretty useless for the command line
client, but lack of it causes problems for some GUI clients.

In TortoiseSVN when you right click on a directory to open the context
menu, an svn_client_status2() call is used to determine the folder
status and therefore decide which options should be presented in the
context menu. Some users have thousands of files per folder, and the
resulting status call means that there is a long delay between the right
click and the context menu opening, which for a GUI is very bad.

We have worked around it by providing an option not to get the status
(ie. assume svn_wc_status_normal) but that means we sometimes present
inappropriate context menu items, eg get history for an added directory.

How hard would it be to add a -1 recurse level which does not get status
for children at all? Or some other implementation - I am just guessing
at a way of doing it.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Need svn status API for directory only

Posted by Ben Collins-Sussman <su...@collab.net>.
On May 20, 2005, at 8:36 AM, Simon Large wrote:
>
> How hard would it be to add a -1 recurse level which does not get  
> status
> for children at all? Or some other implementation - I am just guessing
> at a way of doing it.


This feature has been requested and discussed and years.  And not  
just for 'status', but for all commands:

     http://subversion.tigris.org/issues/show_bug.cgi?id=781



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org