Mercurial > hg
comparison mercurial/cmdutil.py @ 35545:349bcd7fa670
log: remove redundant handling of --limit
A returned 'revs' set is pre-filtered by cmdutil.getlogrevs(). The result
of displayer.flush() isn't used anymore, so removed.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 22 Oct 2017 22:38:16 +0900 |
parents | 8494944940e5 |
children | b6dbc860570d |
comparison
equal
deleted
inserted
replaced
35544:8494944940e5 | 35545:349bcd7fa670 |
---|---|
1583 self.ui.write(h) | 1583 self.ui.write(h) |
1584 del self.header[rev] | 1584 del self.header[rev] |
1585 if rev in self.hunk: | 1585 if rev in self.hunk: |
1586 self.ui.write(self.hunk[rev]) | 1586 self.ui.write(self.hunk[rev]) |
1587 del self.hunk[rev] | 1587 del self.hunk[rev] |
1588 return 1 | |
1589 return 0 | |
1590 | 1588 |
1591 def close(self): | 1589 def close(self): |
1592 if self.footer: | 1590 if self.footer: |
1593 self.ui.write(self.footer) | 1591 self.ui.write(self.footer) |
1594 | 1592 |