Skip to content

Instantly share code, notes, and snippets.

@indygreg
Created June 4, 2018 17:32
Show Gist options
  • Save indygreg/598fd7d8323f35eb970f34d07013e3d2 to your computer and use it in GitHub Desktop.
Save indygreg/598fd7d8323f35eb970f34d07013e3d2 to your computer and use it in GitHub Desktop.
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