[PATCH 2 of 3] largefiles: don't access repo.changelog directly in getlfilestoupload
Mads Kiilerich
mads at kiilerich.com
Tue Apr 12 20:37:38 EDT 2016
# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1460504745 -7200
# Wed Apr 13 01:45:45 2016 +0200
# Node ID 3b7c9668e0db4b1ff383ac0f610e44abef7775d0
# Parent 340c6083f091e64c13e63e8342ae80632c96d26f
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
More information about the Mercurial-devel
mailing list