Created
June 4, 2018 17:32
-
-
Save indygreg/598fd7d8323f35eb970f34d07013e3d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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