[PATCH] patch: introduce nobinary diff option
Steve Borho
steve at borho.org
Sat May 23 20:41:17 CDT 2009
On Sat, May 23, 2009 at 7:06 PM, Steve Borho <steve at borho.org> wrote:
> # HG changeset patch
> # User Steve Borho <steve at borho.org>
> # Date 1243123549 18000
> # Node ID 8b3f9cc17b8249fd01600a1b2997f031c89c8c21
> # Parent 5726bb290bfe882f996e8b79cd32fe62e3d14339
> patch: introduce nobinary diff option
>
> specifying diff options (git=True, nobinary=True) allows a user to query the
> detailed header info of git diffs (copies, renames, permissions) but avoid the
> overhead of generating and storing large base85 diffs. Mostly intended for
> GUI tools
Disregard this. I've decided to use the file's size instead of it's
binary status as the limiting factor. I can query fctx.size() rather
cheaply, and this is a better predictor of the diff cost and size than
the file's binary state.
--
Steve Borho
More information about the Mercurial-devel
mailing list