diff -r 2dfe519d435d -r 7ca534f31a83 mercurial/commands.py --- a/mercurial/commands.py Wed Dec 12 02:38:14 2012 +0100 +++ b/mercurial/commands.py Sun Dec 16 20:50:57 2012 +0100 @@ -2156,7 +2156,7 @@ ui.status(str(r) + '\n') return not r else: - for k, v in target.listkeys(namespace).iteritems(): + for k, v in sorted(target.listkeys(namespace).iteritems()): ui.write("%s\t%s\n" % (k.encode('string-escape'), v.encode('string-escape')))