equal
deleted
inserted
replaced
2107 l = int(getstring(l[0], _(b"rev requires a number"))) |
2107 l = int(getstring(l[0], _(b"rev requires a number"))) |
2108 except (TypeError, ValueError): |
2108 except (TypeError, ValueError): |
2109 # i18n: "rev" is a keyword |
2109 # i18n: "rev" is a keyword |
2110 raise error.ParseError(_(b"rev expects a number")) |
2110 raise error.ParseError(_(b"rev expects a number")) |
2111 if l not in _virtualrevs: |
2111 if l not in _virtualrevs: |
2112 repo.changelog.node(l) # check that the rev exists |
2112 try: |
|
2113 repo.changelog.node(l) # check that the rev exists |
|
2114 except IndexError: |
|
2115 raise error.RepoLookupError(_(b"unknown revision '%d'") % l) |
2113 return subset & baseset([l]) |
2116 return subset & baseset([l]) |
2114 |
2117 |
2115 |
2118 |
2116 @predicate(b'revset(set)', safe=True, takeorder=True) |
2119 @predicate(b'revset(set)', safe=True, takeorder=True) |
2117 def revsetpredicate(repo, subset, x, order): |
2120 def revsetpredicate(repo, subset, x, order): |