Commits

Rune Halvorsen  committed 4666e6f

Fix for 1.4. Use new prompt api

  • Participants
  • Parent commits 570c622
  • Tags hg-1.4.1

Comments (0)

Files changed (1)

File identities.py

     for n, (identity, user) in enumerate(identities):
         ui.write("%s. %s, %s\n" %((n+1, identity.title(), user)))
         choices.append("&"+str(n+1))
-    uid = int(ui.prompt("Identity:", default="1", choices=choices))-1
+    uid = int(ui.promptchoice("Identity:", choices=choices))
     return identities[uid][1]
 
 def _get_config(repo):