comparison mercurial/commands.py @ 18255:7ca534f31a83

debugpushkey: list keys sorted
author Mads Kiilerich <mads at kiilerich.com>
date Sun, 16 Dec 2012 20:50:57 +0100
parents 2dfe519d435d
children 5bb610f87d1d
comparison
equal deleted inserted replaced
18254:2dfe519d435d 18255:7ca534f31a83
2154 key, old, new = keyinfo 2154 key, old, new = keyinfo
2155 r = target.pushkey(namespace, key, old, new) 2155 r = target.pushkey(namespace, key, old, new)
2156 ui.status(str(r) + '\n') 2156 ui.status(str(r) + '\n')
2157 return not r 2157 return not r
2158 else: 2158 else:
2159 for k, v in target.listkeys(namespace).iteritems(): 2159 for k, v in sorted(target.listkeys(namespace).iteritems()):
2160 ui.write("%s\t%s\n" % (k.encode('string-escape'), 2160 ui.write("%s\t%s\n" % (k.encode('string-escape'),
2161 v.encode('string-escape'))) 2161 v.encode('string-escape')))
2162 2162
2163 @command('debugpvec', [], _('A B')) 2163 @command('debugpvec', [], _('A B'))
2164 def debugpvec(ui, repo, a, b=None): 2164 def debugpvec(ui, repo, a, b=None):