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

Re: svn -v list shows '.' in new version

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Mon, 06 Jul 2009 15:08:55 +0100

I (Julian Foad) wrote:
> Andy Salnikov wrote:
> > > Andy Salnikov wrote:
> > > > > Andy Salnikov wrote:
> > > > > > We have upgraded from SVN 1.4 to 1.6 and I noticed one small
> > > > > > inconsistency in the output produced by 'svn -v list' command.
> [...]
> > > > > Thanks for the report. I think this is an unintentional change - in
> > > > > other words, a regression.
>
> Looking at the code now, it looks like the behaviour is intentional.
> There's specific code to produce that result, with a comment:
[...]

I looked at the history. It was changed between versions 1.4 and 1.5,
while adding support for the "--depth" option:

------------------------------------------------------------------------
r24510 | kfogel | 2007-04-10 08:23:51 +0100 (Tue, 10 Apr 2007) | 19
lines

Upgrade svn_client_list() with recurse to svn_client_list2() with depth.

* subversion/include/svn_client.h
  (svn_client_list2): New declaration.
  (svn_client_list): Deprecate.
  (svn_client_list_func_t): Tweak documentation.

* subversion/libsvn_client/list.c
  (svn_client_list2): Define, using body of old svn_client_list.
  (svn_client_list): Implement as wrapper around svn_client_list2.
  (get_dir_contents): Take depth instead of recurse, adjust accordingly.

* subversion/svn/list-cmd.c
  (print_dirent, print_dirent_xml): When verbose, print this-dir
    entry instead of ignoring it.
  (svn_cl__list): Call svn_client_list2 now.

* notes/sparse-directories.txt: Remove this item from the todo list.

------------------------------------------------------------------------

So it was a (perhaps undocumented) behaviour change, and I cannot now
call it a bug.

- Julian

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2368381
Received on 2009-07-06 16:09:17 CEST

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.