Mercurial > hg-stable
changeset 28877:8079639b20dc
largefiles: don't access repo.changelog directly in getlfilestoupload
Make it possible to pass both nodes and revisions to getlfilestoupload.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 13 Apr 2016 01:45:45 +0200 |
parents | 79b8f052ee51 |
children | a75c9665ef06 |
files | hgext/largefiles/lfutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Wed Apr 13 01:09:11 2016 +0200 +++ b/hgext/largefiles/lfutil.py Wed Apr 13 01:45:45 2016 +0200 @@ -486,7 +486,7 @@ for i, n in enumerate(missing): repo.ui.progress(_('finding outgoing largefiles'), i, unit=_('revisions'), total=len(missing)) - parents = [p for p in repo.changelog.parents(n) if p != node.nullid] + parents = [p for p in repo[n].parents() if p != node.nullid] oldlfstatus = repo.lfstatus repo.lfstatus = False