Mercurial > hg
changeset 15789:2c10ea43c801
largefiles: Fix parser warning: redefinition of unused 'node' from line 14
author | Levi Bard <levi@unity3d.com> |
---|---|
date | Sun, 08 Jan 2012 11:23:21 +0100 |
parents | 07b6af9076b4 |
children | 52f816b40674 |
files | hgext/largefiles/reposetup.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py Sun Jan 08 14:50:20 2012 +0100 +++ b/hgext/largefiles/reposetup.py Sun Jan 08 11:23:21 2012 +0100 @@ -11,7 +11,8 @@ import types import os -from mercurial import context, error, manifest, match as match_, node, util +from mercurial import context, error, manifest, match as match_, util +from mercurial import node as node_ from mercurial.i18n import _ import lfcommands @@ -407,7 +408,7 @@ o = repo.changelog.nodesbetween(o, revs)[0] for n in o: parents = [p for p in repo.changelog.parents(n) - if p != node.nullid] + if p != node_.nullid] ctx = repo[n] files = set(ctx.files()) if len(parents) == 2: