mercurial/commands.py
changeset 12964 34034e55424f
parent 12925 6eab8f0df2ca
child 12968 609edbc7853f
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