home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Programming / rcs5ap1b.lzh / RCSFILE.5LP < prev    next >
Encoding:
Text File  |  1991-01-30  |  7.1 KB  |  199 lines

  1.  
  2.  
  3.  
  4. RCSFILE(5)             Programmer's Manual             RCSFILE(5)
  5.  
  6.  
  7.  
  8. NAME
  9.      rcsfile - format of RCS file
  10.  
  11. DESCRIPTION
  12.      An RCS file's contents are described by the grammar below.
  13.      The text is free format: space, backspace, tab, newline,
  14.      vertical tab, form feed, and carriage return (collectively,
  15.      _w_h_i_t_e _s_p_a_c_e) have no significance except in strings.
  16.      Strings are enclosed by @.  If a string contains a @, it
  17.      must be doubled; otherwise, strings may contain arbitrary
  18.      binary data.
  19.  
  20.      The meta syntax uses the following conventions: `|' (bar)
  21.      separates alternatives; `{' and `}' enclose optional
  22.      phrases; `{' and `}*' enclose phrases that may be repeated
  23.      zero or more times; `{' and '}+' enclose phrases that must
  24.      appear at least once and may be repeated; Terminal symbols
  25.      are in boldface; nonterminal symbols are in _i_t_a_l_i_c_s.
  26.  
  27.      _r_c_s_t_e_x_t    ::=  _a_d_m_i_n {_d_e_l_t_a}* _d_e_s_c {_d_e_l_t_a_t_e_x_t}*
  28.  
  29.      _a_d_m_i_n      ::=  head       {_n_u_m};
  30.                      { branch   {_n_u_m}; }
  31.                      access     {_i_d}*;
  32.                      symbols    {_i_d : _n_u_m}*;
  33.                      locks      {_i_d : _n_u_m}*;  {strict  ;}
  34.                      { comment  {_s_t_r_i_n_g}; }
  35.                      { expand   {_s_t_r_i_n_g}; }
  36.                      { _n_e_w_p_h_r_a_s_e }*
  37.  
  38.      _d_e_l_t_a      ::=  _n_u_m
  39.                      date       _n_u_m;
  40.                      author     _i_d;
  41.                      state      {_i_d};
  42.                      branches   {_n_u_m}*;
  43.                      next       {_n_u_m};
  44.                      { _n_e_w_p_h_r_a_s_e }*
  45.  
  46.      _d_e_s_c       ::=  desc       _s_t_r_i_n_g
  47.  
  48.      _d_e_l_t_a_t_e_x_t  ::=  _n_u_m
  49.                      log        _s_t_r_i_n_g
  50.                      { _n_e_w_p_h_r_a_s_e }*
  51.                      text       _s_t_r_i_n_g
  52.  
  53.      _n_u_m        ::=  {_d_i_g_i_t{.}}+
  54.  
  55.      _d_i_g_i_t      ::=  0 | 1 | ... | 9
  56.  
  57.      _i_d         ::=  _l_e_t_t_e_r{_i_d_c_h_a_r}*
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Printed 1/29/91            1990/08/22                           1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RCSFILE(5)             Programmer's Manual             RCSFILE(5)
  71.  
  72.  
  73.  
  74.      _l_e_t_t_e_r     ::=  any letter
  75.  
  76.      _i_d_c_h_a_r     ::=  any visible graphic character except _s_p_e_c_i_a_l
  77.  
  78.      _s_p_e_c_i_a_l    ::=  $ | , | . | : | ; | @
  79.  
  80.      _s_t_r_i_n_g     ::=  @{any character, with @ doubled}*@
  81.  
  82.      _n_e_w_p_h_r_a_s_e  ::=  _i_d _w_o_r_d* ;
  83.  
  84.      _w_o_r_d       ::=  _i_d | _n_u_m | _s_t_r_i_n_g | :
  85.  
  86.      Identifiers are case sensitive.  Keywords are in lower case
  87.      only.  The sets of keywords and identifiers may overlap.  In
  88.      most environments RCS uses the ISO 8859/1 encoding: letters
  89.      are octal codes 101-132, 141-172, 300-326, 330-366 and 370-
  90.      377, visible graphic characters are codes 041-176 and
  91.      240-377, and white space characters are codes 010-015 and
  92.      040.
  93.  
  94.      The _n_e_w_p_h_r_a_s_e productions in the grammar are reserved for
  95.      future extensions to the format of RCS files.  No _n_e_w_p_h_r_a_s_e
  96.      will begin with any keyword already in use.
  97.  
  98.      The _d_e_l_t_a nodes form a tree.  All nodes whose numbers con-
  99.      sist of a single pair (e.g., 2.3, 2.1, 1.3, etc.) are on the
  100.      trunk, and are linked through the next field in order of
  101.      decreasing numbers.  The head field in the _a_d_m_i_n node points
  102.      to the head of that sequence (i.e., contains the highest
  103.      pair).  The branch node in the admin node indicates the
  104.      default branch (or revision) for most RCS operations.  If
  105.      empty, the default branch is the highest branch on the
  106.      trunk.
  107.  
  108.      All _d_e_l_t_a nodes whose numbers consist of 2_n fields (_n)
  109.      (e.g., 3.1.1.1, 2.1.2.2, etc.) are linked as follows.  All
  110.      nodes whose first 2_n-1 number fields are identical are
  111.      linked through the next field in order of increasing
  112.      numbers.  For each such sequence, the _d_e_l_t_a node whose
  113.      number is identical to the first 2_n-2 number fields of the
  114.      deltas on that sequence is called the branchpoint.  The
  115.      branches field of a node contains a list of the numbers of
  116.      the first nodes of all sequences for which it is a bran-
  117.      chpoint.  This list is ordered in increasing numbers.
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Printed 1/29/91            1990/08/22                           2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. RCSFILE(5)             Programmer's Manual             RCSFILE(5)
  137.  
  138.  
  139.  
  140.      Example:
  141.  
  142.                                 Head
  143.                                   |
  144.                                   |
  145.                                   v                        / \
  146.                               ---------                   /   \
  147.         / \          / \      |       |      / \         /     \
  148.        /   \        /   \     |  2.1  |     /   \       /       \
  149.       /     \      /     \    |       |    /     \     /         \
  150.      /1.2.1.3\    /1.3.1.1\   |       |   /1.2.2.2\   /1.2.2.1.1.1\
  151.      ---------    ---------   ---------   ---------   -------------
  152.          ^            ^           |           ^             ^
  153.          |            |           |           |             |
  154.          |            |           v           |             |
  155.         / \           |       ---------      / \            |
  156.        /   \          |       \  1.3  /     /   \           |
  157.       /     \         ---------\     /     /     \-----------
  158.      /1.2.1.1\                  \   /     /1.2.2.1\
  159.      ---------                   \ /      ---------
  160.          ^                        |           ^
  161.          |                        |           |
  162.          |                        v           |
  163.          |                    ---------       |
  164.          |                    \  1.2  /       |
  165.          ----------------------\     /---------
  166.                                 \   /
  167.                                  \ /
  168.                                   |
  169.                                   |
  170.                                   v
  171.                               ---------
  172.                               \  1.1  /
  173.                                \     /
  174.                                 \   /
  175.                                  \ /
  176.  
  177.                        Fig. 1: A revision tree
  178.  
  179. IDENTIFICATION
  180.      Author: Walter F. Tichy, Purdue University, West Lafayette,
  181.      IN, 47907.
  182.      Revision Number: 5.0; Release Date: 1990/08/22.
  183.      Copyright c 1982, 1988, 1989 by Walter F. Tichy.
  184.      Copyright c 1990 by Paul Eggert.
  185.  
  186. SEE ALSO
  187.      ci(1), co(1), ident(1), rcs(1), rcsdiff(1), rcsmerge(1),
  188.      rlog(1),
  189.      Walter F. Tichy, RCS--A System for Version Control,
  190.      _S_o_f_t_w_a_r_e--_P_r_a_c_t_i_c_e & _E_x_p_e_r_i_e_n_c_e 15, 7 (July 1985), 637-654.
  191.  
  192.  
  193.  
  194.  
  195. Printed 1/29/91            1990/08/22                           3
  196.  
  197.  
  198.  
  199.