--- a/mercurial/cmdutil.py Fri Jun 16 01:24:31 2017 +0530
+++ b/mercurial/cmdutil.py Fri Jun 16 01:28:23 2017 +0530
@@ -452,7 +452,7 @@
raise error.AmbiguousCommand(cmd, clist)
if choice:
- return choice.values()[0]
+ return list(choice.values())[0]
raise error.UnknownCommand(cmd, allcmds)