# rlog(1) - man - phpman

> **TLDR:** Print the revision log of RCS files.
>
- Display the complete revision history of a file:
  `rlog {{path/to/file}}`
- Display only the header information (no revision details):
  `rlog -h {{path/to/file}}`
- Display information for a specific revision:
  `rlog -r{{revision}} {{path/to/file}}`
- Display revisions within a date range:
  `rlog -d"{{start_date}}<{{end_date}}" {{path/to/file}}`
- Display revisions by a specific author:
  `rlog -w{{author}} {{path/to/file}}`

*Source: tldr-pages*

---

[RLOG(1)](https://www.chedong.com/phpMan.php/man/RLOG/1/markdown)                                General Commands Manual                               [RLOG(1)](https://www.chedong.com/phpMan.php/man/RLOG/1/markdown)



## NAME
       rlog - print log messages and other information about RCS files

## SYNOPSIS
       **rlog** [ _options_ ] _file_ ...

## DESCRIPTION
       **rlog** prints information about RCS files.

       Filenames  matching  an  RCS suffix denote RCS files; all others denote working files.  Names
       are paired as explained in [**ci**(1)](https://www.chedong.com/phpMan.php/man/ci/1/markdown).

       **rlog** prints the following information for each RCS file: RCS file name,  working  file  name,
       head  (i.e.,  the  number  of the latest revision on the trunk), default branch, access list,
       locks, symbolic names, suffix, total number of revisions, number of  revisions  selected  for
       printing,  and  descriptive  text.  This is followed by entries for the selected revisions in
       reverse chronological order for each branch.  For each revision, **rlog** prints revision number,
       author,  date/time,  state, number of lines added/deleted (with respect to the previous revi‐
       sion), locker of the revision (if any), and log message.  All times are displayed in  Coordi‐
       nated Universal Time (UTC) by default; this can be overridden with **-z**.  Without options, **rlog**
       prints complete information.  The options below restrict this output.

### -L -h -l
           and **-R**.

### -R
           name into an RCS file name.

### -h
           locks, symbolic names, and suffix.

### -t -h

### -N

### -b
           on the trunk.

### -d
           Print information about revisions with a checkin date/time in the  ranges  given  by  the
           semicolon-separated  list of _dates_.  A range of the form _d1_**<**_d2_ or _d2_**>**_d1_ selects the revi‐
           sions that were deposited between _d1_ and _d2_ exclusive.  A range of the form **<**_d_ or _d_**>**  se‐
           lects  all  revisions earlier than _d_.  A range of the form _d_**<** or **>**_d_ selects all revisions
           dated later than _d_.  If **<** or **>** is followed by **=** then the ranges are inclusive, not exclu‐
           sive.  A range of the form _d_ selects the single, latest revision dated _d_ or earlier.  The
           date/time strings _d_, _d1_, and _d2_ are in the free format explained in  [**co**(1)](https://www.chedong.com/phpMan.php/man/co/1/markdown).   Quoting  is
           normally necessary, especially for **<** and **>**.  Note that the separator is a semicolon.

### -l
           Print  information about locked revisions only.  In addition, if the comma-separated list
           _lockers_ of login names is given, ignore all locks other than those held by  the  _lockers_.
           For example, **rlog** **-L** **-R** **-lwft** **RCS/*** prints the name of RCS files locked by the user **wft**.

### -r
           prints  information  about revisions given in the comma-separated list _revisions_ of revi‐
           sions and ranges.  A range _rev1_**:**_rev2_ means revisions _rev1_ to _rev2_  on  the  same  branch,
           **:**_rev_  means  revisions from the beginning of the branch up to and including _rev_, and _rev_**:**
           means revisions starting with _rev_ to the end of the branch containing _rev_.   An  argument
           that is a branch means all revisions on that branch.  A range of branches means all revi‐
           sions on the branches in that range.  A branch followed by a **.** means the latest  revision
           in  that  branch.   A  bare **-r** with no _revisions_ means the latest revision on the default
           branch, normally the trunk.

### -s
           prints information about revisions whose state attributes match one of the  states  given
           in the comma-separated list _states_.

### -w
           prints  information about revisions checked in by users with login names appearing in the
           comma-separated list _logins_.  If _logins_ is omitted, the user's login is assumed.

### -q

### -T

### -V

### -V

### -x
           Use _suffixes_ to characterize RCS files.  See [**ci**(1)](https://www.chedong.com/phpMan.php/man/ci/1/markdown) for details.

       **rlog** prints the intersection of the revisions selected with the options **-d**, **-l**, **-s**,  and  **-w**,
       intersected with the union of the revisions selected by **-b** and **-r**.

### -z
              **-d**_dates_ option.  The _zone_ should be empty, a numeric UTC offset, or the special string
              **LT**  for local time.  The default is an empty _zone_, which uses the traditional RCS for‐
              mat of UTC without any time zone indication and with slashes separating the  parts  of
              the  date;  otherwise,  times are output in ISO 8601 format with time zone indication.
              For example, if local time is January 11, 1990, 8pm Pacific Standard Time, eight hours
              west of UTC, then the time is output as follows:

                     _option_    _time_ _output_
### -z        1990/01/12 04:00:00        _(default)
                     **-zLT**      **1990-01-11** **20:00:00-08**
                     **-z+05:30**  **1990-01-12** **09:30:00+05:30**

## EXAMPLES
           **rlog**  **-L**  **-R**  **RCS/***
           **rlog**  **-L**  **-h**  **RCS/***
           **rlog**  **-L**  **-l**  **RCS/***
           **rlog**  **RCS/***

       The  first command prints the names of all RCS files in the subdirectory **RCS** that have locks.
       The second command prints the headers of those files, and the third prints the  headers  plus
       the log messages of the locked revisions.  The last command prints complete information.

## ENVIRONMENT
       **RCSINIT**
              Options prepended to the argument list, separated by spaces.  A backslash escapes spa‐
              ces within an option.  The **RCSINIT** options are prepended to the argument lists of most
              RCS commands.  Useful **RCSINIT** options include **-q**, **-V**, **-x**, and **-z**.

       **RCS**___**MEM**___**LIMIT**
              Normally,  for  speed,  commands either memory map or copy into memory the RCS file if
              its size is less than the _memory-limit_, currently defaulting to ``unlimited''.  Other‐
              wise  (or  if  the  initially-tried speedy ways fail), the commands fall back to using
              standard i/o routines.  You can adjust the memory limit by setting **RCS**___**MEM**___**LIMIT** to  a
              numeric  value _lim_ (measured in kilobytes).  An empty value is silently ignored.  As a
              side effect, specifying **RCS**___**MEM**___**LIMIT** inhibits fall-back to slower routines.

       **TMPDIR** Name of the temporary directory.  If not set, the environment variables **TMP**  and  **TEMP**
              are  inspected  instead and the first value found is taken; if none of them are set, a
              host-dependent default is used, typically **/tmp**.

## DIAGNOSTICS
       The exit status is zero if and only if all operations were successful.

## IDENTIFICATION
       Author: Walter F. Tichy.
       Manual Page Revision: 5.10.1; Release Date: 2022-02-19.
       Copyright © 2010-2022 Thien-Thi Nguyen.
       Copyright © 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert.
       Copyright © 1982, 1988, 1989 Walter F. Tichy.

## SEE ALSO
       [**ci**(1)](https://www.chedong.com/phpMan.php/man/ci/1/markdown), [**co**(1)](https://www.chedong.com/phpMan.php/man/co/1/markdown), [**ident**(1)](https://www.chedong.com/phpMan.php/man/ident/1/markdown), [**rcs**(1)](https://www.chedong.com/phpMan.php/man/rcs/1/markdown), [**rcsdiff**(1)](https://www.chedong.com/phpMan.php/man/rcsdiff/1/markdown), [**rcsmerge**(1)](https://www.chedong.com/phpMan.php/man/rcsmerge/1/markdown), [**rcsfile**(5)](https://www.chedong.com/phpMan.php/man/rcsfile/5/markdown).

       Walter F. Tichy, RCS--A System for Version Control, _Software--Practice_  _&_  _Experience_  **15**,  7
       (July 1985), 637-654.

       The  full  documentation  for  RCS is maintained as a Texinfo manual.  If the [**info**(1)](https://www.chedong.com/phpMan.php/man/info/1/markdown) and RCS
       programs are properly installed at your site, the command

              **info** **rcs**

       should give you access to the complete manual.  Additionally, the RCS homepage:

              **<http://www.gnu.org/software/rcs/>**

       has news and links to the latest release, development site, etc.

## BUGS
       The separator for revision ranges in the **-r** option used to be **-** instead of **:**, but this  leads
       to  confusion  when symbolic names contain **-**.  For backwards compatibility **rlog** **-r** still sup‐
       ports the old **-** separator, but it warns about this obsolete use.



GNU RCS 5.10.1                               2022-02-19                                      [RLOG(1)](https://www.chedong.com/phpMan.php/man/RLOG/1/markdown)
