--- a/mercurial/revset.py Sat Apr 30 07:00:13 2011 -0700+++ b/mercurial/revset.py Sat Apr 30 18:25:45 2011 +0200@@ -614,7 +614,7 @@ """ try: n = int(n[1])- if n not in (0,1,2):+ if n not in (0, 1, 2): raise ValueError except ValueError: raise error.ParseError(_("^ expects a number 0, 1, or 2"))