equal
deleted
inserted
replaced
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) |