Fwd: hg diff file1 file2 file3 not preserving the file order
Mathieu Clabaut
mathieu.clabaut at gmail.com
Wed Sep 6 19:39:01 UTC 2006
Forwarding to the list (one day, I will not forgot, I promise ! )
On 9/6/06, TK Soh <teekaysoh at gmail.com> wrote:
> On 9/6/06, Mihai Ibanescu <misa+hg at redhat.com> wrote:
> > Hi,
> >
> > I noticed that if you do
> >
> > hg diff file3 file2 file1
> >
> > the order in which the diff is performed is not preserved.
>
> I wonder why the order of files in the diff output is important.
To return your question, why sorting the file is important ? :-) (it
may be for faster implementation, I really do not know)....
Perhaps that file3 is more important than file2, and that user wants
to review the (possibly huge) diff in that order without extra
manipulations. Perhaps that HG is used as a backend for another
programs which need to preserve the order,.... Just to say that we do
not know the user needs.... (I don't think to have already feel the
need for such a requirement, but who knows...)
I can not say which is better, but I may understand such an
expectation (the order is preserved).
I for sure can also understand that preserving order is undesirable
due to some performance issues.
my 2 cents...
-mathieu
More information about the Mercurial
mailing list