mercurial/context.py
changeset 40044 ccf4d808ec4c
parent 39959 43d3b09b3e5a
child 40045 6ed53b194124
equal deleted inserted replaced
40043:6509fcec830c 40044:ccf4d808ec4c
   732         repo = self._repo
   732         repo = self._repo
   733         cl = repo.unfiltered().changelog
   733         cl = repo.unfiltered().changelog
   734         mfl = repo.manifestlog
   734         mfl = repo.manifestlog
   735         # fetch the linkrev
   735         # fetch the linkrev
   736         lkr = self.linkrev()
   736         lkr = self.linkrev()
       
   737         if srcrev == lkr:
       
   738             return lkr
   737         # hack to reuse ancestor computation when searching for renames
   739         # hack to reuse ancestor computation when searching for renames
   738         memberanc = getattr(self, '_ancestrycontext', None)
   740         memberanc = getattr(self, '_ancestrycontext', None)
   739         iteranc = None
   741         iteranc = None
   740         if srcrev is None:
   742         if srcrev is None:
   741             # wctx case, used by workingfilectx during mergecopy
   743             # wctx case, used by workingfilectx during mergecopy