Mercurial > hg
comparison hgext/keyword.py @ 8706:25e9c71b89de
commit: drop the now-unused files parameter
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 01 Jun 2009 14:11:32 -0500 |
parents | aea3a23151bd |
children | fccdf5ca5065 |
comparison
equal
deleted
inserted
replaced
8705:509083f54e52 | 8706:25e9c71b89de |
---|---|
447 | 447 |
448 def wread(self, filename): | 448 def wread(self, filename): |
449 data = super(kwrepo, self).wread(filename) | 449 data = super(kwrepo, self).wread(filename) |
450 return kwt.wread(filename, data) | 450 return kwt.wread(filename, data) |
451 | 451 |
452 def commit(self, files=None, text='', user=None, date=None, | 452 def commit(self, text='', user=None, date=None, match=None, |
453 match=None, force=False, editor=None, extra={}): | 453 force=False, editor=None, extra={}): |
454 wlock = lock = None | 454 wlock = lock = None |
455 _p1 = _p2 = None | 455 _p1 = _p2 = None |
456 try: | 456 try: |
457 wlock = self.wlock() | 457 wlock = self.wlock() |
458 lock = self.lock() | 458 lock = self.lock() |
469 if _p2 == nullid: | 469 if _p2 == nullid: |
470 _p2 = '' | 470 _p2 = '' |
471 else: | 471 else: |
472 _p2 = hex(_p2) | 472 _p2 = hex(_p2) |
473 | 473 |
474 n = super(kwrepo, self).commit(files, text, user, date, match, | 474 n = super(kwrepo, self).commit(text, user, date, match, force, |
475 force, editor, extra) | 475 editor, extra) |
476 | 476 |
477 # restore commit hooks | 477 # restore commit hooks |
478 for name, cmd in commithooks.iteritems(): | 478 for name, cmd in commithooks.iteritems(): |
479 ui.setconfig('hooks', name, cmd) | 479 ui.setconfig('hooks', name, cmd) |
480 if n is not None: | 480 if n is not None: |