Skip to content
Snippets Groups Projects
Commit 1765897f authored by Matt Mackall's avatar Matt Mackall
Browse files

sshrepo: sort arguments

All current commands have zero or one args. Future multi-arg commands
will want args to appear in a deterministic order.
parent c3d7daa0
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@
def do_cmd(self, cmd, **args):
self.ui.debug("sending %s command\n" % cmd)
self.pipeo.write("%s\n" % cmd)
for k, v in args.iteritems():
for k, v in sorted(args.iteritems()):
self.pipeo.write("%s %d\n" % (k, len(v)))
self.pipeo.write(v)
self.pipeo.flush()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment