This is an archive of the discontinued Mercurial Phabricator instance.

commitextras: work nicely with other extensions
ClosedPublic

Authored by valentin.gatienbaron on Aug 27 2018, 4:28 PM.

Details

Summary

Before this change, it doesn't add these extra fields when loaded
alongside another extension that does a bunch of things, including
wrapping commit.

I did not investigate exactly why, but

  • the documentation of extensions.wrapfunction says to use subclassing

to play nicely with other extensions

  • using subclassing does make commitextras work when loaded alongside

my other extension

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.