# HG changeset patch # User Peter Arrenbrecht # Date 2011-03-22 06:40:02 # Node ID f4a85acef50c74eda658bce7507eb12700b07763 # Parent 3458c15ab2f03729ed9a762de11cef55ad95c385 wireproto: fix decodelist to properly return empty list Needed by tests for next patch introducing known(). diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -15,7 +15,9 @@ import pushkey as pushkeymod # list of nodes encoding / decoding def decodelist(l, sep=' '): - return map(bin, l.split(sep)) + if l: + return map(bin, l.split(sep)) + return [] def encodelist(l, sep=' '): return sep.join(map(hex, l))