largefiles: Fix parser warning: redefinition of unused 'node' from line 14
authorLevi Bard <levi@unity3d.com>
Sun, 08 Jan 2012 11:23:21 +0100
changeset 15789 2c10ea43c801
parent 15788 07b6af9076b4
child 15790 52f816b40674
largefiles: Fix parser warning: redefinition of unused 'node' from line 14
hgext/largefiles/reposetup.py
--- 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: