Submitter | Yuya Nishihara |
---|---|
Date | Sept. 24, 2016, 2 p.m. |
Message ID | <bf616dd17b4244d4d5fc.1474725637@mimosa> |
Download | mbox | patch |
Permalink | /patch/16777/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1948,9 +1948,10 @@ def _makefollowlogfilematcher(repo, file def populate(): for fn in files: - for i in ((pctx[fn],), pctx[fn].ancestors(followfirst=followfirst)): - for c in i: - fcache.setdefault(c.linkrev(), set()).add(c.path()) + fctx = pctx[fn] + fcache.setdefault(fctx.linkrev(), set()).add(fctx.path()) + for c in fctx.ancestors(followfirst=followfirst): + fcache.setdefault(c.linkrev(), set()).add(c.path()) def filematcher(rev): if not fcacheready[0]: