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

Re: random sort of svn status and svn diff

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 21 Mar 2012 00:51:53 +0000

Sérgio Basto <sergio_at_serjux.com> writes:

> On Tue, 2012-03-20 at 19:23 -0500, Ryan Schmidt wrote:
>> On Mar 20, 2012, at 19:17, Sérgio Basto wrote:
>>
>> > Hi, I am facing a problem
>> > I do a svn diff | lsdiff
>> > I got file in random order , also happens with svn status
>>
>> Correct, Subversion does not output these in a sorted order.
>
> but one month ago , svn diff have always same output , now it is
> random , is a bug or regression.

That's the result of a change in the APR hash table implementation.
Subversion often uses "hash order" and in the past this was always the
same for a given set of hash keys. The new APR implementation means
that this order is no longer constant.

> why the output shouldn't be sorted by name or something else ?
> or why svn don't have a sort option this is insane .

It could be done but nobody has done it yet, the APR change is only a
few weeks old. Sorting may need to be optional as there is a cost to
sorting that not everybody would want.

-- 
Philip
Received on 2012-03-21 01:52:31 CET

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

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