Show More
@@ -459,13 +459,14 b' def reposetup(ui, repo):' | |||||
459 | data = super(kwrepo, self).wread(filename) |
|
459 | data = super(kwrepo, self).wread(filename) | |
460 | return kwt.wread(filename, data) |
|
460 | return kwt.wread(filename, data) | |
461 |
|
461 | |||
462 | def commit(self, text='', user=None, date=None, match=None, |
|
462 | def commit(self, *args, **opts): | |
463 | force=False, editor=None, extra={}): |
|
|||
464 | # use custom commitctx for user commands |
|
463 | # use custom commitctx for user commands | |
465 | # other extensions can still wrap repo.commitctx directly |
|
464 | # other extensions can still wrap repo.commitctx directly | |
466 |
|
|
465 | self.commitctx = self.kwcommitctx | |
467 | return super(kwrepo, self).commit(text, user, date, match, force, |
|
466 | try: | |
468 | editor, extra) |
|
467 | return super(kwrepo, self).commit(*args, **opts) | |
|
468 | finally: | |||
|
469 | del self.commitctx | |||
469 |
|
470 | |||
470 | def kwcommitctx(self, ctx, error=False): |
|
471 | def kwcommitctx(self, ctx, error=False): | |
471 | wlock = lock = None |
|
472 | wlock = lock = None | |
@@ -489,7 +490,7 b' def reposetup(ui, repo):' | |||||
489 | if commithooks: |
|
490 | if commithooks: | |
490 | for name, cmd in commithooks.iteritems(): |
|
491 | for name, cmd in commithooks.iteritems(): | |
491 | ui.setconfig('hooks', name, cmd) |
|
492 | ui.setconfig('hooks', name, cmd) | |
492 |
|
|
493 | self.hook('commit', node=n, parent1=xp1, parent2=xp2) | |
493 | return n |
|
494 | return n | |
494 | finally: |
|
495 | finally: | |
495 | release(lock, wlock) |
|
496 | release(lock, wlock) |
General Comments 0
You need to be logged in to leave comments.
Login now