Mercurial > hg-stable
changeset 40045:ccf4d808ec4c
context: fast path linkrev adjustement in trivial case
If the search starts from the linkrev, there is nothing to adjust.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 04 Oct 2018 08:34:59 +0200 |
parents | 6509fcec830c |
children | 6ed53b194124 |
files | mercurial/context.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Thu Oct 04 11:28:48 2018 +0200 +++ b/mercurial/context.py Thu Oct 04 08:34:59 2018 +0200 @@ -734,6 +734,8 @@ mfl = repo.manifestlog # fetch the linkrev lkr = self.linkrev() + if srcrev == lkr: + return lkr # hack to reuse ancestor computation when searching for renames memberanc = getattr(self, '_ancestrycontext', None) iteranc = None