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