summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/rcs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1994-05-12 00:37:59 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1994-05-12 00:37:59 +0000
commit2924ea82c2c8abfeac7c4a052073711dcbc4a830 (patch)
treeaed93d1eda843b2585254d8b075804f66ac717f7 /gnu/usr.bin/rcs
parentd22eb644593d6be02d0a3fba6cb7987f9ae2629f (diff)
downloadsrc-test2-2924ea82c2c8abfeac7c4a052073711dcbc4a830.tar.gz
src-test2-2924ea82c2c8abfeac7c4a052073711dcbc4a830.zip
Notes
Diffstat (limited to 'gnu/usr.bin/rcs')
-rw-r--r--gnu/usr.bin/rcs/rlog/rlog.16
-rw-r--r--gnu/usr.bin/rcs/rlog/rlog.c8
2 files changed, 9 insertions, 5 deletions
diff --git a/gnu/usr.bin/rcs/rlog/rlog.1 b/gnu/usr.bin/rcs/rlog/rlog.1
index c4ce039005d5..e3deb6871ee9 100644
--- a/gnu/usr.bin/rcs/rlog/rlog.1
+++ b/gnu/usr.bin/rcs/rlog/rlog.1
@@ -2,7 +2,7 @@
.ds Rv \\$3
.ds Dt \\$4
..
-.Id $Id: rlog.1,v 1.1.1.1 1993/06/18 04:22:17 jkh Exp $
+.Id $Id: rlog.1,v 1.2 1994/05/11 22:39:43 phk Exp $
.ds g \&\s-1UTC\s0
.ds r \&\s-1RCS\s0
.if n .ds - \%--
@@ -55,8 +55,8 @@ This is convenient for translating a
working pathname into an \*r pathname.
.TP
.BI \-v "[string]"
-Print only the working pathname and head. The optional string is prepended
-to the outputline.
+Print only the working pathname and tip-revision.
+The optional string is prepended to the outputline.
.TP
.B \-h
Print only the \*r pathname, working pathname, head,
diff --git a/gnu/usr.bin/rcs/rlog/rlog.c b/gnu/usr.bin/rcs/rlog/rlog.c
index c7ce890190aa..6e339df44153 100644
--- a/gnu/usr.bin/rcs/rlog/rlog.c
+++ b/gnu/usr.bin/rcs/rlog/rlog.c
@@ -36,6 +36,9 @@ Report problems and direct all questions to:
/* $Log: rlog.c,v $
+ * Revision 1.3 1994/05/11 22:39:44 phk
+ * Added -v option to rlog. This gives a quick way to get a list of versions.
+ *
* Revision 1.2 1993/08/06 16:47:16 nate
* Have rlog output be much easier to parse. (Added one line which is not
* used by any CVS/RCS commands)
@@ -198,7 +201,7 @@ static struct lockers *lockerlist;
static struct stateattri *statelist;
-mainProg(rlogId, "rlog", "$Id: rlog.c,v 1.2 1993/08/06 16:47:16 nate Exp $")
+mainProg(rlogId, "rlog", "$Id: rlog.c,v 1.3 1994/05/11 22:39:44 phk Exp $")
{
static char const cmdusage[] =
"\nrlog usage: rlog -{bhLRt} [-v[string]] -ddates -l[lockers] -rrevs -sstates -w[logins] -Vn file ...";
@@ -339,7 +342,8 @@ mainProg(rlogId, "rlog", "$Id: rlog.c,v 1.2 1993/08/06 16:47:16 nate Exp $")
continue;
if ( versionlist ) {
- aprintf(out, "%s%s %s\n", vstring, workfilename, Head->num);
+ gettree()l
+ aprintf(out, "%s%s %s\n", vstring, workfilename, tiprev());
continue;
}