Most commands have defaults for which versions to use; many of them let you specify a different version with the –v option. For instance, the
diff command defaults to comparing the file in your workspace with the most recently kept version. Using the
–v option, you can compare the file in your workspace with any version:
The version specification following
–v can be either of the following:
You can use a forward slash ( / ) or a backslash (
\ ) on any platform. With UNIX/Linux shells, you’ll need to quote or escape the backslash character.
A specification that includes a <version-number> is completely deterministic and invariant. Once someone creates version
13 in stream
tulip_dvt, the version specification
tulip_dvt/13 always refers to that version, no matter what happens in the future (well, almost — see the Note below).
A specification that includes only a <stream-name> or
<stream-number>, not a
<version-number>, says “the version that is currently in use by the specified stream”:
Note: AccuRev’s TimeSafe property means that once a version is created, it can never be destroyed. If a stream is renamed (
chstream command), a version specification can still use the old stream name — or the stream number, which never changes. If a stream is deactivated (
remove command), its versions become inaccessible. This is not irrevocable, though: you can reactivate a stream, making its versions accessible again, with the
reactivate command.