Show More
@@ -25,8 +25,12 b' class changectx(object):' | |||
|
25 | 25 | self._repo = repo |
|
26 | 26 | |
|
27 | 27 | if isinstance(changeid, int): |
|
28 | try: | |
|
29 | self._node = repo.changelog.node(changeid) | |
|
30 | except IndexError: | |
|
31 | raise error.RepoLookupError( | |
|
32 | _("unknown revision '%s'") % changeid) | |
|
28 | 33 | self._rev = changeid |
|
29 | self._node = repo.changelog.node(changeid) | |
|
30 | 34 | return |
|
31 | 35 | if isinstance(changeid, long): |
|
32 | 36 | changeid = str(changeid) |
General Comments 0
You need to be logged in to leave comments.
Login now