[PATCH 1 of 2 RFC] export: list all key/values from extra in the patch header

Matt Mackall mpm at selenic.com
Sat Jan 16 12:09:38 CST 2016


On Sun, 2015-12-20 at 22:52 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1450661679 18000
> #      Sun Dec 20 20:34:39 2015 -0500
> # Node ID eff20351cc9b29232493885887e82576f772d1b6
> # Parent  5df74b2f296df7f44a08106df4f9dd97a5aa726a
> export: list all key/values from extra in the patch header

One problem I foresee here is that there is going to be a set of extras that
need rewriting to be correct. Rebase/graft headers come to mind, as do the
signature headers we've been recently discussing. And we may not be able to
identify them or have enough information to rewrite them.

But I agree that it should be possible. So we either want to put this behind a
flag/config or provide some sort of opt-out method. For instance, don't export
keys that start with "_".

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list