mercurial/copies.py
changeset 26781 1aee2ab0f902
parent 26659 df66736a128e
child 27876 602add6ad9e5
equal deleted inserted replaced
26780:bbf544b5f2e9 26781:1aee2ab0f902
   239 
   239 
   240 def _makegetfctx(ctx):
   240 def _makegetfctx(ctx):
   241     """return a 'getfctx' function suitable for checkcopies usage
   241     """return a 'getfctx' function suitable for checkcopies usage
   242 
   242 
   243     We have to re-setup the function building 'filectx' for each
   243     We have to re-setup the function building 'filectx' for each
   244     'checkcopies' to ensure the linkrev adjustement is properly setup for
   244     'checkcopies' to ensure the linkrev adjustment is properly setup for
   245     each. Linkrev adjustment is important to avoid bug in rename
   245     each. Linkrev adjustment is important to avoid bug in rename
   246     detection. Moreover, having a proper '_ancestrycontext' setup ensures
   246     detection. Moreover, having a proper '_ancestrycontext' setup ensures
   247     the performance impact of this adjustment is kept limited. Without it,
   247     the performance impact of this adjustment is kept limited. Without it,
   248     each file could do a full dag traversal making the time complexity of
   248     each file could do a full dag traversal making the time complexity of
   249     the operation explode (see issue4537).
   249     the operation explode (see issue4537).