Return the :class:`.Script` instance with the given rev id. .. seealso:: :meth:`.ScriptDirectory.get_revisions`
(self, id_: str)
| 281 | return cast(Set[Script], self.revision_map._get_all_current(id_)) |
| 282 | |
| 283 | def get_revision(self, id_: str) -> Script: |
| 284 | """Return the :class:`.Script` instance with the given rev id. |
| 285 | |
| 286 | .. seealso:: |
| 287 | |
| 288 | :meth:`.ScriptDirectory.get_revisions` |
| 289 | |
| 290 | """ |
| 291 | |
| 292 | with self._catch_revision_errors(): |
| 293 | return cast(Script, self.revision_map.get_revision(id_)) |
| 294 | |
| 295 | def as_revision_number( |
| 296 | self, id_: Optional[str] |
no test coverage detected