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

Re: Ordering of output from diff [was: Small nit with svn diff]

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-11-16 01:51:20 CET

On Tue, 2005-11-15 at 14:23 -0500, John Peacock wrote:
> Julian Foad wrote:
> > That is: within one directory (say "gcc"), it will diff each contained
> > item (file or sub-dir) in turn, in an unknown order. At some point it
> > will get to the sub-dir "gcc/config", and when it does it will diff
> > everything inside "gcc/config" (in an unknown order) before continuing
> > with the other direct children of "gcc". So, the files that are direct
> > children of "gcc" are separated by subdirectories.
>
> Well, not "unknown order" but rather "native filesystem order" I
> believe. And as soon as the code hits a directory, it will recurse that
> directory before popping back up again, so it can look pretty random.

Actually, it's whatever ordering the hash happens to come up with when
you iterate over it.

This may or may not be anything like filesystem order :)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 16 01:52:08 2005

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