09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SCCS: Source Code Control System <strong>XENIX</strong> Programming<br />

Creati ng a Branch Version<br />

You can create a branch version of a file by editing a version that has been previously<br />

edited. A branch version is simply a version with an SID that contains a branch and<br />

sequence number.<br />

For example, if version 1.4 already exists, the command<br />

get -e -r1.3 s.demo.c<br />

retrieves version 1.3 for editing and gives 1.3.1.1 as the proposed SID.<br />

In general, whenever get discovers that you wish to edit a version that already has a<br />

succeeding version, it uses the first available branch and sequence numbers for the<br />

proposed SID. For example, if you edit version 1.3 a third time, get gives 1.3.2.1 as the<br />

proposed SID.<br />

You can save a branch version just like any other version by using the delta command.<br />

Retrieving a Branch Version<br />

You can retrieve a branch version of a file by using the -r option of the get command.<br />

For example, the command<br />

get -r1.3.1.1 s.demo.c<br />

retrieves branch version 1.3.1. 1.<br />

You may retrieve a branch version for editing by using the -e option of the get<br />

command. When retrieving for editing, get creates the proposed SID by incrementing<br />

the sequence number by one. For example, if you retrieve branch version 1.3.1.1 for<br />

editing, get gives 1.3.1.2 as the proposed SID.<br />

As always, the command displays the version number and file size. If the given branch<br />

version does not exist, the command displays an error message.<br />

You may omit the sequence nu mber if you wish. In this case; the command retrieves the<br />

most recent branch version with the given branch number. For example, if the most<br />

recent branch version in the s-file s.def.h is 1.3.1.4, the command<br />

get -r1 .3.1 s.def.h<br />

retrieves version 1.3.1.4.<br />

5-10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!