equal
deleted
inserted
replaced
449 |
449 |
450 def wread(self, filename): |
450 def wread(self, filename): |
451 data = super(kwrepo, self).wread(filename) |
451 data = super(kwrepo, self).wread(filename) |
452 return kwt.wread(filename, data) |
452 return kwt.wread(filename, data) |
453 |
453 |
454 def commit(self, files=None, text='', user=None, date=None, |
454 def commit(self, text='', user=None, date=None, match=None, |
455 match=None, force=False, editor=None, extra={}): |
455 force=False, editor=None, extra={}): |
456 wlock = lock = None |
456 wlock = lock = None |
457 _p1 = _p2 = None |
457 _p1 = _p2 = None |
458 try: |
458 try: |
459 wlock = self.wlock() |
459 wlock = self.wlock() |
460 lock = self.lock() |
460 lock = self.lock() |
471 if _p2 == nullid: |
471 if _p2 == nullid: |
472 _p2 = '' |
472 _p2 = '' |
473 else: |
473 else: |
474 _p2 = hex(_p2) |
474 _p2 = hex(_p2) |
475 |
475 |
476 n = super(kwrepo, self).commit(files, text, user, date, match, |
476 n = super(kwrepo, self).commit(text, user, date, match, force, |
477 force, editor, extra) |
477 editor, extra) |
478 |
478 |
479 # restore commit hooks |
479 # restore commit hooks |
480 for name, cmd in commithooks.iteritems(): |
480 for name, cmd in commithooks.iteritems(): |
481 ui.setconfig('hooks', name, cmd) |
481 ui.setconfig('hooks', name, cmd) |
482 if n is not None: |
482 if n is not None: |