You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Vincent Lefevre <vi...@vinc17.net> on 2016/05/08 13:55:11 UTC

random, unpredictable sort of svn diff

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@segulix%3E

What's the status?

I haven't found a bug on this subject on Jira.

-- 
Vincent Lefvre <vi...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

RE: random, unpredictable sort of svn diff

Posted by Bert Huijben <be...@qqmail.nl>.

> -----Original Message-----
> From: Ivan Zhakov [mailto:ivan@visualsvn.com]
> Sent: maandag 9 mei 2016 09:53
> To: dev@subversion.apache.org; vincent-svn@vinc17.net
> Subject: Re: random, unpredictable sort of svn diff
> 
> On 8 May 2016 at 16:55, Vincent Lefevre <vi...@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@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


Re: random, unpredictable sort of svn diff

Posted by Ivan Zhakov <iv...@visualsvn.com>.
On 8 May 2016 at 16:55, Vincent Lefevre <vi...@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@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

-- 
Ivan Zhakov

Re: random, unpredictable sort of svn diff

Posted by Vincent Lefevre <vi...@vinc17.net>.
On 2016-05-08 17:56:00 +0200, Branko \u010cibej wrote:
> On 08.05.2016 15:55, Vincent Lefevre wrote:
> > I haven't found a bug on this subject on Jira.
> 
> This is hardly a bug, right.

I should have said issue (this includes improvements).

-- 
Vincent Lef�vre <vi...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Re: random, unpredictable sort of svn diff

Posted by Branko Čibej <br...@apache.org>.
On 08.05.2016 15:55, Vincent Lefevre 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@segulix%3E
>
> What's the status?

If it's not done, no-one's taken the time to do it. Patches are always
welcome.

> I haven't found a bug on this subject on Jira.

This is hardly a bug, right.

-- Brane