mercurial/copies.py
changeset 23139 e53f6b72a0e4
parent 23071 652ab726ba93
child 23980 c1ce5442453f
equal deleted inserted replaced
23136:6eab50a34fed 23139:e53f6b72a0e4
    95     # |
    95     # |
    96     # | o  1 a1
    96     # | o  1 a1
    97     # |/
    97     # |/
    98     # o  0 a0
    98     # o  0 a0
    99     #
    99     #
   100     # When findlimit is called, a and b are revs 3 and 0, so limit will be 2,
   100     # When _findlimit is called, a and b are revs 3 and 0, so limit will be 2,
   101     # yet the filelog has the copy information in rev 1 and we will not look
   101     # yet the filelog has the copy information in rev 1 and we will not look
   102     # back far enough unless we also look at the a and b as candidates.
   102     # back far enough unless we also look at the a and b as candidates.
   103     # This only occurs when a is a descendent of b or visa-versa.
   103     # This only occurs when a is a descendent of b or visa-versa.
   104     return min(limit, a, b)
   104     return min(limit, a, b)
   105 
   105