RFC: committer field in extras for applied patches

Matt Mackall mpm at selenic.com
Tue Mar 29 22:13:45 CDT 2011


On Tue, 2011-03-29 at 22:27 -0400, Eric Eisner wrote:
> Hi,
> 
> The motivation for this feature is from hg's repo: being able to see who
> reviewed and committed a patch that was not committed by crew/mpm. Other
> projects that accept a lot of patches via patchbomb would also benefit. I'm
> mostly focusing on the semantics of when to add the metadata, and ignoring
> for now how one would view it.
> 
> Idea 1: patch only
> On import/qimport/qpush/qrefresh, if the patch has a different user than
> ui.username(), add committer=username to extras.
> 
> Idea 2: Every commit to the repo
> This would be implemented at a lower level, maybe in repo.commit. Any time a
> supplied user is different from ui.username(), add committer=username to
> extras.
> In addition to patch creation, the --user flag of commit/qrefresh will
> create committer=ui.username(). This mostly seems pointless to me though.
> This is pretty much the semantics of git for comparison.

The git converter has always implemented this by adding 

committer: foo

at the bottom of commits.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list