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

Need svn status API for directory only

From: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-05-20 15:36:39 CEST

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
Received on Fri May 20 15:36:37 2005

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

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