hgext3rd/evolve/utility.py
changeset 3581 846f7d4fe47e
parent 3538 b314c64f336b
child 3656 62e4149435d8
equal deleted inserted replaced
3580:031d70bcbb42 3581:846f7d4fe47e
   153         return None
   153         return None
   154 
   154 
   155     promptmsg = customheader + "\n"
   155     promptmsg = customheader + "\n"
   156     for idx, rev in enumerate(revs):
   156     for idx, rev in enumerate(revs):
   157         curctx = repo[rev]
   157         curctx = repo[rev]
   158         revmsg = "%d: [%s] %s\n" % (idx, curctx,
   158         revmsg = _("%d: [%s] %s\n" % (idx, curctx,
   159                                     curctx.description().split("\n")[0])
   159                                       curctx.description().split("\n")[0]))
   160         promptmsg += revmsg
   160         promptmsg += revmsg
   161 
   161 
   162     promptmsg += "q: quit the prompt\n"
   162     promptmsg += _("q: quit the prompt\n")
   163     promptmsg += "enter the index of the revision you want to select:"
   163     promptmsg += _("enter the index of the revision you want to select:")
   164     idxselected = ui.prompt(promptmsg)
   164     idxselected = ui.prompt(promptmsg)
   165 
   165 
   166     intidx = None
   166     intidx = None
   167     try:
   167     try:
   168         intidx = int(idxselected)
   168         intidx = int(idxselected)