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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Including and Excluding Deltas<br />

You can explicitly define which deltas you wish to include and which you wish to exclude<br />

when creating a g-file by using the -i and -x options of the get command.<br />

The -i option causes the command to apply the given deltas when constructing a version.<br />

The -x option causes the command to ignore the given deltas when constructing a<br />

version. Both options must be followed by one or more SIDs. If multiple SIDs are given,<br />

they must be separated by commas (,). A range of SIDs may be given by separating two<br />

SIDs with a hyphen (-). For example, the command<br />

get -i 1.2, 1.3 s.demo.c<br />

causes deltas 1.2 and 1.3 to be used to construct the g-file. The command<br />

get -x1.2-1.4 s.demo.c<br />

causes deltas 1.2 through 1.4 to be ignored when constructing the file.<br />

The -i option is useful if you wish to apply the same changes to more than one version.<br />

For example, the command<br />

get -e -i4. 1 -r3.3 s.demo.c<br />

retrieves version 3.3 for editing. When the file is retrieved, the changes in delta 4.1 are<br />

automatically applied to it, making the g-file the same as if version 3.3 had been edited<br />

by hand using the changes in delta 4.1. These changes can be saved immediately by<br />

issuing a delta command. No editing is required.<br />

The -x option is useful if you wish to remove changes performed on a given version. For<br />

example, the command<br />

get -e -x 1.5 -r1.6 s.demo.c<br />

retrieves version 1.6 for editing. When the file is retrieved, the changes in delta 1.5 are<br />

automatically left out of it, making the g-file the same as if version 1.4 had been<br />

changed according to delta 1.6 (with no intervening delta 1.5). These changes can be<br />

saved immediately by issuing a delta command. No editing is required.<br />

When deltas are included or excluded, get compares them with the deltas normally used<br />

in constructing the given version. If two deltas attempt to change the same line of the<br />

retrieved file, the command displays a warning message. The message shows the range<br />

of lines in which the problem may exist. Corrective action, if required, is the<br />

responsibility of the user.<br />

5-28

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

Saved successfully!

Ooh no, something went wrong!