D763: copytrace: add a a new config to limit the number of drafts in heuristics

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Tue Sep 26 09:19:07 EDT 2017


yuja requested changes to this revision.
yuja added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> copies.py:391
> +                                            'copytrace.sourcecommitlimit')
> +        commits = len(repo.revs('%d::%d', base.rev(), c1.rev()))
> +        return commits < sourcecommitlimit

Oops. `repo` isn't passed to this function.

Write tests?

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D763

To: pulkit, #hg-reviewers, yuja
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list