Mercurial > public > mercurial-scm > hg
comparison mercurial/copies.py @ 46649:324ded1aa2ab
copies: inline _backwardrenames() in pathcopies()
I'll add another filtering step in `patchcopies()` next. I need access
to the forward copies for that.
Differential Revision: https://phab.mercurial-scm.org/D10119
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 05 Mar 2021 14:26:56 -0800 |
parents | eca88f5fbcb2 |
children | 2803f94b7431 |
comparison
equal
deleted
inserted
replaced
46648:eca88f5fbcb2 | 46649:324ded1aa2ab |
---|---|
759 if debug: | 759 if debug: |
760 repo.ui.debug(b'debug.copies: search mode: combined\n') | 760 repo.ui.debug(b'debug.copies: search mode: combined\n') |
761 base = None | 761 base = None |
762 if a.rev() != nullrev: | 762 if a.rev() != nullrev: |
763 base = x | 763 base = x |
764 x_copies = _forwardcopies(a, x) | |
765 y_copies = _forwardcopies(a, y, base, match=match) | |
766 x_backward_renames = _reverse_renames(x_copies, x, match) | |
764 copies = _chain( | 767 copies = _chain( |
765 _backwardrenames(x, a, match=match), | 768 x_backward_renames, |
766 _forwardcopies(a, y, base, match=match), | 769 y_copies, |
767 ) | 770 ) |
768 _filter(x, y, copies) | 771 _filter(x, y, copies) |
769 return copies | 772 return copies |
770 | 773 |
771 | 774 |