Mercurial > hg
changeset 42500:e387cb22f6c0
remotefilelog: handle copies in changesets in getrenamedfn() override
E.g. the {file_copies} template keyword didn't work with copies in
changesets before this patch because remotefilelog overrides the
getrenamedfn() and didn't handle the changeset-centric case.
Differential Revision: https://phab.mercurial-scm.org/D6542
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 19 Jun 2019 10:33:13 -0700 |
parents | f93762f251d2 |
children | 75334e5b519e |
files | hgext/remotefilelog/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/remotefilelog/__init__.py Wed Jun 19 11:12:06 2019 -0700 +++ b/hgext/remotefilelog/__init__.py Wed Jun 19 10:33:13 2019 -0700 @@ -636,7 +636,7 @@ extensions.wrapfunction(changelog.changelog, 'add', changelogadd) def getrenamedfn(orig, repo, endrev=None): - if not isenabled(repo): + if not isenabled(repo) or copies.usechangesetcentricalgo(repo): return orig(repo, endrev) rcache = {}