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

RE: random, unpredictable sort of svn diff

From: Bert Huijben <bert_at_qqmail.nl>
Date: Mon, 9 May 2016 10:09:30 +0200

> -----Original Message-----
> From: Ivan Zhakov [mailto:ivan_at_visualsvn.com]
> Sent: maandag 9 mei 2016 09:53
> To: dev_at_subversion.apache.org; vincent-svn_at_vinc17.net
> Subject: Re: random, unpredictable sort of svn diff
>
> On 8 May 2016 at 16:55, Vincent Lefevre <vincent-svn_at_vinc17.net> wrote:
> > Hi,
> >
> > The output of "svn diff" is still in random order (not even
> > pseudo-random, completely unpredictable). There had been discussions
> > in the past to fix this, e.g.
> >
> > https://mail-archives.apache.org/mod_mbox/subversion-
> users/201203.mbox/%3C1332298973.3028.17.camel_at_segulix%3E
> >
> > What's the status?
> >
> > I haven't found a bug on this subject on Jira.
> >
> I'm getting stable sorted output when using Subversion 1.9.3:
> $ touch a b c
> $ svn add a b c
> $ svn diff
> Index: a
> ==========================================================
> =========
> Index: b
> ==========================================================
> =========
> Index: c
> ==========================================================
> =========
>
> The same for svn st

This really depends on what diff driver you use.
Local diff uses 'svn status' to determine what to show, so this is 100% stable in recent versions, but once you diff against the repository the diff is generated in the ordering in which the server (or the ra layer) reports its changes, which is mostly based on how things are stored in an apr hash in libsvn_repos which performs the tree diff server side.

        Bert

>
> --
> Ivan Zhakov
Received on 2016-05-09 10:09:59 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.