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

Re: [PATCH] issue #4134 (partial): sort deleted nodes before dumping them

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 30 May 2012 07:55:34 +0100 (BST)

Greg Stein wrote:

> On Tue, May 29, 2012 at 5:01 PM, Dustin Lang <dstn_at_astro.princeton.edu>
> wrote:
>> ...
>>> You can use svn_sort_compare_items_lexically because entries are single
>>> path components that do not contain slashes. In which case
>>> svn_sort_compare_items_as_paths produces the same result but is less
>>> efficient.
>>
>> The paths are like:
>>
>>  trunk/documents/papers/archetypes/paper_plots/103lg.ps
>>
>> But I still believe you are right that lexical sort will work fine and is
>> simpler than svn_sort_compare_items_as_paths.
>
> Right. Everything up to the final '/' will match precisely, so only
> the children are being compared.
>
> More specifically, you are NOT sorting paths like:
>
>   some/path
>   some/path/more
>   some/pathmore
>
> The sorting there is quite a bit different.

If you're using _lexically on these paths, please explain this in a comment, otherwise this will be confusing to readers.

- Julian
Received on 2012-05-30 08:56:15 CEST

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