Eskil

Check-in [f8c67e6117]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Explain relative -r numbers.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f8c67e6117ff79889d05b39a2886c79f6729af2e
User & Date: peter 2006-05-22 17:04:34.000
Context
2006-05-22
17:19
New tests check-in: 10dc811844 user: peter tags: trunk
17:04
Explain relative -r numbers. check-in: f8c67e6117 user: peter tags: trunk
17:03
Added vfs. check-in: 59e41c55e4 user: peter tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to doc/revision.txt.
15
16
17
18
19
20
21

22
23
24
25
26
27

28
29

30
31
32
33
34
35
  Compare the two revisions. This does not involve the local copy of file.txt.

The -r options are also available in the GUI in the "Rev 1" and "Rev 2" fields.

<ul>RCS/CVS</ul>

For RCS and CVS the arguments to -r are standard version numbers just like to their -r options.  RCS style -r\u003crev\u003e is allowed.


<ul>ClearCase</ul>

ClearCase has more complex version "numbers".
ClearCase stream names are built like file paths and in -r you can access the streams similar to how you find files.
Your current stream is the "current directory".

<pre>-r 5                    </pre>: Version 5 in current stream.
<pre>-r .                    </pre>: Latest version in current stream.

<pre>-r /full/path/stream/4  </pre>: The identified version.
<pre>-r /full/path/stream    </pre>: Latest version in that stream.
<pre>-r ../5                 </pre>: Version in parent stream.
<pre>-r ..                   </pre>: Latest in parent stream.
<pre>-r stream/5             </pre>: Version in stream, anywhere in tree.
<pre>-r stream               </pre>: Latest in stream, anywhere in tree.







>






>


>






15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  Compare the two revisions. This does not involve the local copy of file.txt.

The -r options are also available in the GUI in the "Rev 1" and "Rev 2" fields.

<ul>RCS/CVS</ul>

For RCS and CVS the arguments to -r are standard version numbers just like to their -r options.  RCS style -r\u003crev\u003e is allowed.
If a revision is an integer, it is added to the last number in the current version, thus giving relative versions.  E.g. -1 gives the second to last version.

<ul>ClearCase</ul>

ClearCase has more complex version "numbers".
ClearCase stream names are built like file paths and in -r you can access the streams similar to how you find files.
Your current stream is the "current directory".
A negative version number is offset from latest.
<pre>-r 5                    </pre>: Version 5 in current stream.
<pre>-r .                    </pre>: Latest version in current stream.
<pre>-r -1                   </pre>: Second to last version in current stream.
<pre>-r /full/path/stream/4  </pre>: The identified version.
<pre>-r /full/path/stream    </pre>: Latest version in that stream.
<pre>-r ../5                 </pre>: Version in parent stream.
<pre>-r ..                   </pre>: Latest in parent stream.
<pre>-r stream/5             </pre>: Version in stream, anywhere in tree.
<pre>-r stream               </pre>: Latest in stream, anywhere in tree.