[PATCH] largefiles: Fix parser warning: redefinition of unused 'node' from line 14

Levi Bard taktaktaktaktaktaktaktaktaktak at gmail.com
Sun Jan 8 04:29:25 CST 2012


# HG changeset patch
# User Levi Bard <levi at unity3d.com>
# Date 1326018201 -3600
# Node ID 413b2ce11bb119ebf6f84c6cac74552a01855e86
# Parent  33cd91d05246bfc61a4b32587052112d5b855018
largefiles: Fix parser warning: redefinition of unused 'node' from line 14

diff -r 33cd91d05246 -r 413b2ce11bb1 hgext/largefiles/reposetup.py
--- a/hgext/largefiles/reposetup.py	Sat Jan 07 19:11:31 2012 +0100
+++ b/hgext/largefiles/reposetup.py	Sun Jan 08 11:23:21 2012 +0100
@@ -11,7 +11,7 @@
 import types
 import os
 
-from mercurial import context, error, manifest, match as match_, node, util
+from mercurial import context, error, manifest, match as match_, node as node_, util
 from mercurial.i18n import _
 
 import lfcommands
@@ -414,7 +414,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:


More information about the Mercurial-devel mailing list