home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / rcstxi11.zip / rcstexi.110 / rcsdiff.tex < prev    next >
Text File  |  1997-03-30  |  10KB  |  275 lines

  1. @c
  2. @c ================================================================================
  3. @c                               Edition 1.1
  4. @c                      of the Texinfo-manuals for the
  5. @c                      (R)evision (C)ontrol (S)ystem
  6. @c                               Version 5.7
  7. @c
  8. @c                  (c) 1982, 1988, 1989 Walter F. Tichy.
  9. @c           (c) 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert.
  10. @c        (c) 1996, 1997 Karl Heinz Marbaise (doing converting job)
  11. @c ================================================================================
  12. @c
  13. @c Discription:
  14. @c    differences between versions.
  15. @c
  16. @c Authors:
  17. @c    Walter Tichy,
  18. @c    Paul Eggert,
  19. @c    Karl Heinz Marbaise (doing converting job)
  20. @c
  21. @c e-mail:
  22. @c    Internet: KHMarbaise@p69.ks.fido.de
  23. @c    Fido-net: 2:2452/117.69
  24. @c
  25. @c Bugs, question:
  26. @c    to above e-mail adress.
  27. @c
  28. @c License:
  29. @c    The "Texinfo Edition of the RCS V5.7 manuals" are free
  30. @c    software; you can redistribute it and/or modify it under
  31. @c    the terms of the GNU General Public License as published
  32. @c    by the Free Software Foundation; either version 2, or (at
  33. @c    your option) any later version.
  34. @c
  35. @c    The "Texinfo Edition of the RCS V5.7 manuals" are distributed
  36. @c    in the hope that they will be useful, but WITHOUT ANY WARRANTY;
  37. @c    without even the implied warranty of MERCHANTABILITY or
  38. @c    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
  39. @c    License for more details.
  40. @c
  41. @c    You should have received a copy of the GNU General Public License
  42. @c    along with the "Texinfo Edition of the RCS V5.7 manuals"; see the
  43. @c    file COPYING. If not, write to the:
  44. @c    Free Software Foundation,
  45. @c    59 Temple Place - Suite 330,
  46. @c    Boston, MA 02111-1307, USA.
  47. @c
  48. @c    See \rcstxi.110\COPYING for details.
  49. @c
  50. @c ================================================================================
  51. @c
  52. @c
  53. @c $Id: RCSDIFF.TEX 1.2 1997/03/30 22:53:15 KHM Exp $
  54. @c
  55. @c =============================================================================
  56. @c rcsdiff -- compare RCS revisions
  57. @c -----------------------------------------------------------------------------
  58. @node rcsdiff,rcsmerge,rcsclean,Top
  59. @chapter rcsdiff -- compare RCS revisions
  60. @cindex rcsdiff
  61. @cindex compare revisions
  62. @menu
  63. * rcsdiffIntro::        Introduction to @code{rcsdiff}.
  64.  
  65. * rcsdiffOptions::      command line options of @code{rcsdiff}.
  66. * rcsdiffExamples::     Examples in using @code{rcsdiff}.
  67. * rcsdiffEnv::          The Environment which can change the
  68.                         behaviour of much of the RCS commands.
  69. * rcsdiffDiag::         Diagnostic output of @code{rcsdiff}.
  70. @end menu
  71. @c =============================================================================
  72. @c rcsdiff -- compare RCS revisions
  73. @c     Description
  74. @c -----------------------------------------------------------------------------
  75. @node rcsdiffIntro,rcsdiffOptions,,rcsdiff
  76. @section Description
  77. rcsdiff  runs @code{diff} to compare two revisions of each RCS
  78. file given.
  79.  
  80. Pathnames matching an RCS suffix  denote  RCS  files;  all
  81. others   denote   working  files.   Names  are  paired  as
  82. explained in @ref{ciFiles}.
  83.  
  84. @c =============================================================================
  85. @c rcsdiff -- compare RCS revisions
  86. @c     Options
  87. @c -----------------------------------------------------------------------------
  88. @node rcsdiffOptions,rcsdiffExamples,rcsdiffIntro,rcsdiff
  89. @section Command line options of rcsdiff
  90. @ifinfo
  91. Overview off all options which can be given to @code{rcsdiff}
  92.  
  93. @code{Synopsis}: rcsdiff [options] [@code{-r@file{rev1}}] [@code{-r@file{rev2}}]  [@code{diff options}] [ file @dots{} ]
  94. @end ifinfo
  95. @menu
  96. * rcsdiffOptk::   -k Keyword substitution.
  97. * rcsdiffOptq::   -q Quiet mode.
  98. * rcsdiffOptr::   -r Revision for comparison.
  99. * rcsdiffOptT::   -T Modification time.
  100. * rcsdiffOptV::   -V Version; Emulation RCS Version.
  101. * rcsdiffOptx::   -x Suffixes.
  102. @end menu
  103. @c =============================================================================
  104. @c rcsdiff -- compare RCS revisions
  105. @c     Options
  106. @c         option -k
  107. @c -----------------------------------------------------------------------------
  108. @node rcsdiffOptk,rcsdiffOptq,rcsdiffOptions,rcsdiffOptions
  109. @subsection Keyword substitution
  110. @cindex -k
  111. @cindex Keyword
  112. @table @code
  113. @item -k@file{subst}
  114.  
  115. @code{-k@file{subst}} affects keyword substitution when extracting
  116. revisions, as described in @ref{coOptk}; for example,
  117. @code{-kk -r1.1 -r1.2} ignores differences in keyword values
  118. when comparing revisions  @code{1.1}  and  @code{1.2}.
  119. To avoid excess output from locker name substitution,
  120. @code{-kkvl} is assumed if
  121.  
  122.  
  123. @enumerate
  124. @item at  most  one revision  option  is given,
  125.  
  126. @item no @code{-k} option is given,
  127.  
  128. @item @code{-kkv} is the default  keyword  substitution,  and
  129.  
  130. @item the working file's mode would be produced by @code{co -l}.
  131.  
  132. @end enumerate
  133. @end table
  134. @c =============================================================================
  135. @c rcsdiff -- compare RCS revisions
  136. @c     Options
  137. @c         option -q
  138. @c -----------------------------------------------------------------------------
  139. @node rcsdiffOptq,rcsdiffOptr,rcsdiffOptk,rcsdiffOptions
  140. @subsection Quiet mode
  141. @cindex -q
  142. @cindex Quiet
  143. @table @code
  144. @item -q@file{rev}
  145.  
  146. The option -q suppresses diagnostic output.
  147. @end table
  148. @c =============================================================================
  149. @c rcsdiff -- compare RCS revisions
  150. @c     Options
  151. @c         option -r
  152. @c -----------------------------------------------------------------------------
  153. @node rcsdiffOptr,rcsdiffOptT,rcsdiffOptq,rcsdiffOptions
  154. @subsection Revision for comparison
  155. @cindex -r
  156. @cindex Revision
  157. @cindex comparison
  158. @table @code
  159. @item -r@file{rev1} -r@file{rev2}
  160.  
  161. Zero, one, or two  revisions  may  be  specified  with  @code{-r}.
  162. If both @file{rev1} and @file{rev2} are omitted,  rcsdiff  compares  the
  163. latest  revision  on  the  default  branch (by default the
  164. trunk) with the  contents  of  the  corresponding  working
  165. file.   This  is  useful  for determining what you changed
  166. since the last checkin.
  167.  
  168. If @file{rev1} is given, but @file{rev2} is  omitted,  rcsdiff  compares
  169. revision  @file{rev1} of  the  RCS file with the contents of the
  170. corresponding working file.
  171.  
  172. If both @file{rev1} and @file{rev2} are given,  rcsdiff  compares
  173. revisions @file{rev1} and @file{rev2} of the RCS file.
  174.  
  175. Both  @file{rev1} and  @file{rev2} may be given numerically or symbolically.
  176.  
  177. @end table
  178. @c =============================================================================
  179. @c rcsdiff -- compare RCS revisions
  180. @c     Options
  181. @c         option -T
  182. @c -----------------------------------------------------------------------------
  183. @node rcsdiffOptT,rcsdiffOptV,rcsdiffOptr,rcsdiffOptions
  184. @subsection Modification time
  185. @cindex -T
  186. @cindex Modification
  187. @cindex time/date
  188. @table @code
  189. @item -T
  190.  
  191. For details @xref{coOptT}.
  192.  
  193. @end table
  194. @c =============================================================================
  195. @c rcsdiff -- compare RCS revisions
  196. @c     Options
  197. @c         option -V
  198. @c -----------------------------------------------------------------------------
  199. @node rcsdiffOptV,rcsdiffOptx,rcsdiffOptT,rcsdiffOptions
  200. @subsection Version and Emulation
  201. @cindex -V
  202. @cindex RCS Version
  203. @cindex Emulation of RCS Version
  204. @table @code
  205. @item -V
  206.  
  207. Print RCS's version number.
  208.  
  209. @item -V@file{n}
  210.  
  211. Emulate RCS version @file{n}.  @xref{coOptV} for details.
  212. @end table
  213. @c =============================================================================
  214. @c rcsdiff -- compare RCS revisions
  215. @c     Options
  216. @c         option -x
  217. @c -----------------------------------------------------------------------------
  218. @node rcsdiffOptx,,rcsdiffOptV,rcsdiffOptions
  219. @subsection Suffixes
  220. @cindex -x
  221. @cindex Suffixes
  222. @table @code
  223. @item -x@file{suffixes}
  224.  
  225. Use @file{suffixes} to characterize RCS files.  See  @ref{ciOptx}
  226. for details.
  227. @end table
  228. @c =============================================================================
  229. @c rcsdiff -- compare RCS revisions
  230. @c     Examples
  231. @c -----------------------------------------------------------------------------
  232. @node rcsdiffExamples,rcsdiffEnv,rcsdiffOptions,rcsdiff
  233. @section Examples
  234. @cindex Examples
  235.  
  236. @example
  237. rcsdiff  *.c  *.h
  238. @end example
  239.  
  240.  
  241. removes all working files ending in .c or .h that were not
  242. changed since their checkout.
  243.  
  244.  
  245. @example
  246. rcsdiff
  247. @end example
  248.  
  249.  
  250. removes  all  working  files in the current directory that
  251. were not changed since their checkout.
  252.  
  253. @c =============================================================================
  254. @c rcsdiff -- compare RCS revisions
  255. @c     Envrionment
  256. @c -----------------------------------------------------------------------------
  257. @node rcsdiffEnv,rcsdiffDiag,rcsdiffExamples,rcsdiff
  258. @section Environment
  259. @cindex Environment
  260. @table @code
  261. @item RCSINIT
  262. options prepended to the argument list, separated by spaces.
  263. See @ref{ciEnv} for details.
  264.  
  265. @end table
  266. @c =============================================================================
  267. @c rcsdiff -- compare RCS revisions
  268. @c     Diagnostics
  269. @c -----------------------------------------------------------------------------
  270. @node rcsdiffDiag,,rcsdiffEnv,rcsdiff
  271. @section Diagnostics
  272. Exit status is 0 for no differences during any comparison,
  273. 1 for some differences, 2 for trouble.
  274.  
  275.