DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Tracking versions with SCCS

Retrieval of different versions

The version of an SCCS file that get retrieves by default is the most recently created delta of the highest numbered trunk release. However, any other version can be retrieved with get -r by specifying the version's SID. Thus,

   $ get -r1.3 s.abc
retrieves version 1.3 of s.abc and produces (for example) on the standard output
   1.3
   64 lines

A branch delta may be retrieved similarly,

   $ get -r1.5.2.3 s.abc
which produces (for example) on the standard output
   1.5.2.3
   234 lines
When a SID is specified and the particular version does not exist in the SCCS file, an error message results.

Omitting the level number, as in

   $ get -r3 s.abc
causes retrieval of the trunk delta with the highest level number within the given release. Thus, the above command might output
   3.7
   213 lines

If the given release does not exist, get retrieves the trunk delta with the highest level number within the highest-numbered existing release that is lower than the given release. For example, assume release 9 does not exist in file s.abc and release 7 is the highest-numbered release below 9. Executing

   $ get -r9 s.abc
would produce
   7.6
   420 lines
which indicates that trunk delta 7.6 is the latest version of file s.abc below release 9. Similarly, omitting the sequence number, as in
   $ get -r4.3.2 s.abc
results in the retrieval of the branch delta with the highest sequence number on the given branch. This might result in the following output:
   4.3.2.8
   89 lines

(If the given branch does not exist, an error message results.)

get -t will retrieve the latest (top) version of a particular release when no -r is used or when its value is simply a release number. The latest version is the delta produced most recently, independent of its location on the SCCS file tree. Thus, if the most recent delta in release 3 is 3.5,

   $ get -r3 -t s.abc
would produce
   3.5
   59 lines

However, if branch delta 3.2.1.5 were the latest delta (created after delta 3.5), the same command might produce

   3.2.1.5
   46 lines

Next topic: Updating source
Previous topic: ID keywords

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004