D4149: linelog: extract `len(self._program)` to a local function

2018-08-09 Thread quark (Jun Wu)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG32b1967b8734: linelog: extract `len(self._program)` to a local function (authored by quark, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D4149: linelog: extract `len(self._program)` to a local function

2018-08-07 Thread quark (Jun Wu)
quark updated this revision to Diff 10066. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D4149?vs=10026=10066 REVISION DETAIL https://phab.mercurial-scm.org/D4149 AFFECTED FILES mercurial/linelog.py CHANGE DETAILS diff --git a/mercurial/linelog.py

D4149: linelog: extract `len(self._program)` to a local function

2018-08-06 Thread quark (Jun Wu)
quark updated this revision to Diff 10026. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D4149?vs=10024=10026 REVISION DETAIL https://phab.mercurial-scm.org/D4149 AFFECTED FILES mercurial/linelog.py CHANGE DETAILS diff --git a/mercurial/linelog.py

D4149: linelog: extract `len(self._program)` to a local function

2018-08-06 Thread quark (Jun Wu)
quark created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This is a micro optimization prepared for following changes where `len(self._program)` is used in a loop. REPOSITORY rHG Mercurial REVISION DETAIL