hgext/convert/monotone.py
changeset 48913 f254fc73d956
parent 48875 6000f5b25c9b
child 48932 176f1a0d15dc
equal deleted inserted replaced
48912:a0674e916fb6 48913:f254fc73d956
   100 
   100 
   101     def mtnrunstdio(self, *args, **kwargs):
   101     def mtnrunstdio(self, *args, **kwargs):
   102         # Prepare the command in automate stdio format
   102         # Prepare the command in automate stdio format
   103         kwargs = pycompat.byteskwargs(kwargs)
   103         kwargs = pycompat.byteskwargs(kwargs)
   104         command = []
   104         command = []
   105         for k, v in pycompat.iteritems(kwargs):
   105         for k, v in kwargs.items():
   106             command.append(b"%d:%s" % (len(k), k))
   106             command.append(b"%d:%s" % (len(k), k))
   107             if v:
   107             if v:
   108                 command.append(b"%d:%s" % (len(v), v))
   108                 command.append(b"%d:%s" % (len(v), v))
   109         if command:
   109         if command:
   110             command.insert(0, b'o')
   110             command.insert(0, b'o')