Mercurial > hg-stable
diff mercurial/transaction.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 25e572394f5c |
children | 5116a077c3da |
line wrap: on
line diff
--- a/mercurial/transaction.py Mon Jan 25 00:05:22 2010 -0600 +++ b/mercurial/transaction.py Mon Jan 25 00:05:27 2010 -0600 @@ -73,8 +73,8 @@ @active def add(self, file, offset, data=None): - if file in self.map: return - + if file in self.map: + return if self._queue: self._queue[-1].append((file, offset, data)) return @@ -147,7 +147,8 @@ self.report(_("transaction abort!\n")) try: - _playback(self.journal, self.report, self.opener, self.entries, False) + _playback(self.journal, self.report, self.opener, + self.entries, False) self.report(_("rollback completed\n")) except: self.report(_("rollback failed - please run hg recover\n"))