serveronly: fix undefined variable
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 02 Mar 2017 18:13:57 +0100
changeset 2026 851265d5adc2
parent 2025 d286222293c8
child 2027 de914b833105
serveronly: fix undefined variable This is a legit bug caught by pyflake
hgext3rd/evolve/serveronly.py
--- a/hgext3rd/evolve/serveronly.py	Thu Mar 02 18:13:45 2017 +0100
+++ b/hgext3rd/evolve/serveronly.py	Thu Mar 02 18:13:57 2017 +0100
@@ -190,7 +190,7 @@
         assert False
     nm = repo.changelog.nodemap
     revs = [nm.get(n) for n in nodes]
-    return [r is None and nullid or hashs[r][1] for r in revs]
+    return [r is None and node.nullid or hashs[r][1] for r in revs]
 
 def srv_obshash(repo, proto, nodes):
     return wireproto.encodelist(_obshash(repo, wireproto.decodelist(nodes)))