changeset 2026:851265d5adc2

serveronly: fix undefined variable This is a legit bug caught by pyflake
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 02 Mar 2017 18:13:57 +0100
parents d286222293c8
children de914b833105
files hgext3rd/evolve/serveronly.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)))