changeset 45202 | 31393ec06cef |
parent 45197 | 55464c0b3a89 |
child 45203 | ae5c1a3bc339 |
--- a/mercurial/localrepo.py Tue Jul 21 13:36:48 2020 -0700 +++ b/mercurial/localrepo.py Mon Jul 06 19:13:19 2020 +0200 @@ -2802,6 +2802,9 @@ touched = 'added' if isinstance(fctx, context.filectx): + # This block fast path most comparisons which are usually done. It + # assumes that bare filectx is used and no merge happened, hence no + # need to create a new file revision in this case. node = fctx.filenode() if node in [fparent1, fparent2]: self.ui.debug(b'reusing %s filelog entry\n' % fname)