Commit 7b144106 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a5e06a29
......@@ -635,7 +635,13 @@ def watch(w, zf, at): # XXX -> ?
# pinstr returns human-readable representation for {}blk->rev
def pinstr(pin):
pinv = ['%d: %s' % (blk, t.hat(pin[blk])) for blk in sorted(pin.keys())]
pinv = []
for blk in sorted(pin.keys()):
if pin[blk] is None:
s = 'head'
else:
s = t.hat(pin[blk])
pinv.append('%d: %s' % (blk, s))
return '{%s}' % ', '.join(pinv)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment