hgext/convert/monotone.py
changeset 43105 649d3ac37a12
parent 43085 eef9a2d67051
child 43117 8ff1ecfadcd1
equal deleted inserted replaced
43104:74802979dd9d 43105:649d3ac37a12
   101 
   101 
   102     def mtnrunstdio(self, *args, **kwargs):
   102     def mtnrunstdio(self, *args, **kwargs):
   103         # Prepare the command in automate stdio format
   103         # Prepare the command in automate stdio format
   104         kwargs = pycompat.byteskwargs(kwargs)
   104         kwargs = pycompat.byteskwargs(kwargs)
   105         command = []
   105         command = []
   106         for k, v in kwargs.iteritems():
   106         for k, v in pycompat.iteritems(kwargs):
   107             command.append(b"%d:%s" % (len(k), k))
   107             command.append(b"%d:%s" % (len(k), k))
   108             if v:
   108             if v:
   109                 command.append(b"%d:%s" % (len(v), v))
   109                 command.append(b"%d:%s" % (len(v), v))
   110         if command:
   110         if command:
   111             command.insert(0, b'o')
   111             command.insert(0, b'o')