comparison mercurial/commands.py @ 12964:34034e55424f

check-code: using and/or/not as a function is bad style
author Martin Geisler <mg@lazybytes.net>
date Thu, 11 Nov 2010 00:08:09 +0100
parents 6eab8f0df2ca
children 609edbc7853f
comparison
equal deleted inserted replaced
12963:e80128e40c04 12964:34034e55424f
1118 target = hg.repository(ui, repopath) 1118 target = hg.repository(ui, repopath)
1119 if keyinfo: 1119 if keyinfo:
1120 key, old, new = keyinfo 1120 key, old, new = keyinfo
1121 r = target.pushkey(namespace, key, old, new) 1121 r = target.pushkey(namespace, key, old, new)
1122 ui.status(str(r) + '\n') 1122 ui.status(str(r) + '\n')
1123 return not(r) 1123 return not r
1124 else: 1124 else:
1125 for k, v in target.listkeys(namespace).iteritems(): 1125 for k, v in target.listkeys(namespace).iteritems():
1126 ui.write("%s\t%s\n" % (k.encode('string-escape'), 1126 ui.write("%s\t%s\n" % (k.encode('string-escape'),
1127 v.encode('string-escape'))) 1127 v.encode('string-escape')))
1128 1128