# HG changeset patch # User Mads Kiilerich # Date 2016-04-12 23:45:45 # Node ID 8079639b20dcf7126df90368817ee86ea8ecfc25 # Parent 79b8f052ee512a523084c7e0699a493bd93e23ec largefiles: don't access repo.changelog directly in getlfilestoupload Make it possible to pass both nodes and revisions to getlfilestoupload. diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -486,7 +486,7 @@ def getlfilestoupload(repo, missing, add 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