[darcs-users] trailing whitespace
Trent W. Buck
trentbuck at gmail.com
Thu May 14 03:16:06 UTC 2009
On Wed, May 13, 2009 at 06:49:08PM -0700, Jason Dagit wrote:
> On Wed, May 13, 2009 at 6:45 PM, Trent W. Buck <trentbuck at gmail.com> wrote:
>
>> Jason Dagit <dagit at codersbase.com> writes:
>>
>>> I guess that's sort of where darcs is doing something that other
>>> vcs farm off to diff viewers.
>>
>> We do have a "darcs diff", but it's a lot slower than "darcs
>> whatsnew" precisely because it does have to run a separate diff
>> process, which entails setting up two working trees (or subsets
>> thereof) appropriately.
>
> Yes, we can invoke a diff viewer, but that is different than what I
> was referring to. I meant for commands like record and pull that
> show you the patch contents.
Nod. FWIW, I don't believe the git and hg equivalents of
record/pull/changes -v/... use an external diff program.
Just as an example,
$ strace -f hg log -p -l 10 2>&1 >/dev/null | grep diff | cut -d, -f1 | sort -u
open("/usr/local/lib/python2.5/site-packages/mercurial/bdiff.so"
open("/usr/local/lib/python2.5/site-packages/mercurial/mdiff.py"
open("/usr/local/lib/python2.5/site-packages/mercurial/mdiff.pyc"
open("/usr/local/lib/python2.5/site-packages/mercurial/mdiff.so"
open("/usr/local/lib/python2.5/site-packages/mercurial/mdiffmodule.so"
stat64("/usr/local/lib/python2.5/site-packages/mercurial/bdiff"
stat64("/usr/local/lib/python2.5/site-packages/mercurial/mdiff"
$ strace -f git log --max-count=10 2>&1 >/dev/null | grep diff | cut -d, -f1 | sort -u
$
They aren't using an external diff for their equivalent of darcs
changes -v.
>>> From experience where we use svn at work, we use a separate program to
>>> view diffs that allows you to see whitespace
>> Which program is this, please?
> I think it's called tortoise merge or tortoise diff.
Oh, on Windows. Never mind, then, I'm not interested :-)
More information about the darcs-users
mailing list