Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def reposetup(ui, repo):
class extrarepo(repo.__class__):
def commit(self, self, text="", user=None, date=None, match=None, force=False,
editor=False, extra=None):
extra = extra or {}
# modify extra
return super(extrarepo, self).commit(text=text, user=user, ...)
repo.__class__ = extrarepo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment