author | mpm@selenic.com |
Thu, 15 Sep 2005 03:00:10 -0500 | |
changeset 1259 | f75567782aba |
parent 1258 | 1945754e466b (current diff) |
parent 1257 | fe7fbfdb066d (diff) |
child 1260 | 4603eef60237 |
--- a/mercurial/commands.py Thu Sep 15 02:59:16 2005 -0500 +++ b/mercurial/commands.py Thu Sep 15 03:00:10 2005 -0500 @@ -163,9 +163,9 @@ num = int(val) if str(num) != val: raise ValueError - if num < 0: - num += revcount - if not (0 <= num < revcount): + if num < 0: num += revcount + if num < 0: num = 0 + elif num >= revcount: raise ValueError except ValueError: try: