Mercurial > hg
diff hgext/largefiles/lfutil.py @ 46113:59fa3890d40a
node: import symbols explicitly
There is no point in lazy importing mercurial.node, it is used all over
the place anyway. So consistently import the used symbols directly.
Fix one file using symbols indirectly via mercurial.revlog.
Differential Revision: https://phab.mercurial-scm.org/D9480
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Tue, 01 Dec 2020 21:54:46 +0100 |
parents | 89a2afe31e82 |
children | 6266d19556ad |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Sun Dec 13 18:29:22 2020 -0800 +++ b/hgext/largefiles/lfutil.py Tue Dec 01 21:54:46 2020 +0100 @@ -15,7 +15,10 @@ import stat from mercurial.i18n import _ -from mercurial.node import hex +from mercurial.node import ( + hex, + nullid, +) from mercurial.pycompat import open from mercurial import ( @@ -24,7 +27,6 @@ error, httpconnection, match as matchmod, - node, pycompat, scmutil, sparse, @@ -610,7 +612,7 @@ ) as progress: for i, n in enumerate(missing): progress.update(i) - parents = [p for p in repo[n].parents() if p != node.nullid] + parents = [p for p in repo[n].parents() if p != nullid] with lfstatus(repo, value=False): ctx = repo[n]