Extended (Git) diff output for changeset diffs in Hgweb?
Lawrence Stewart
lstewart at room52.net
Fri Jun 20 18:22:08 UTC 2014
On 06/20/14 05:19, Stephen Lee wrote:
> On 20 Jun 2014 12:35, "Lawrence Stewart" <lstewart at room52.net
> <mailto:lstewart at room52.net>> wrote:
>
> Hi all,
>
> Is there a way to make Hgweb use extended diff format when displaying
> changeset diffs? Changesets which change file permissions for example
> show up as empty when viewed in Hgweb, but "diff -g -r <rev_hash>" on
> the command line shows the permissions change.
>
> I tried various combinations to no avail of adding the following to the
> hgweb.conf and repo's hgrc files:
>
> [diff]
> git = True
>
>
>
> I had a patch to do this... I might be able to drag it out...
Ah, I obviously assumed this was functionality that existed but I was
unable to figure out how to enable.
> The only complication was that I needed to also disable showing binary
> diffs.
> We had several changesets with many large binary diffs and seeing a hex
> blob in the browser is not very useful.
> It also had a tendency to kill either the server or the browser if the
> files were big enough.
We have a bunch of binary files and some very large text based diffs in
our repo, so having some control over the amount of diff shown, and
whether to show binary diffs would be very useful.
Cheers,
Lawrence
More information about the Mercurial
mailing list