comparison mercurial/copies.py @ 46302:599d247af600

copies: fix some comment in _filter The scenario the comment describes match case 6, not case 2. Differential Revision: https://phab.mercurial-scm.org/D9793
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 15 Jan 2021 23:47:16 +0100
parents cb8b2ee89a5d
children f213b250fed0
comparison
equal deleted inserted replaced
46301:9689d3f3f8c5 46302:599d247af600
39 def _filter(src, dst, t): 39 def _filter(src, dst, t):
40 """filters out invalid copies after chaining""" 40 """filters out invalid copies after chaining"""
41 41
42 # When _chain()'ing copies in 'a' (from 'src' via some other commit 'mid') 42 # When _chain()'ing copies in 'a' (from 'src' via some other commit 'mid')
43 # with copies in 'b' (from 'mid' to 'dst'), we can get the different cases 43 # with copies in 'b' (from 'mid' to 'dst'), we can get the different cases
44 # in the following table (not including trivial cases). For example, case 2 44 # in the following table (not including trivial cases). For example, case 6
45 # is where a file existed in 'src' and remained under that name in 'mid' and 45 # is where a file existed in 'src' and remained under that name in 'mid' and
46 # then was renamed between 'mid' and 'dst'. 46 # then was renamed between 'mid' and 'dst'.
47 # 47 #
48 # case src mid dst result 48 # case src mid dst result
49 # 1 x y - - 49 # 1 x y - -