summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/rcs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-05-12 00:37:59 +0000
committerphk <phk@FreeBSD.org>1994-05-12 00:37:59 +0000
commit45dc7d2c3e155ac271418df0f1ae022661af3869 (patch)
treeaed93d1eda843b2585254d8b075804f66ac717f7 /gnu/usr.bin/rcs
parent037426058494656867e482736a396175e2d4d322 (diff)
downloadFreeBSD-src-45dc7d2c3e155ac271418df0f1ae022661af3869.zip
FreeBSD-src-45dc7d2c3e155ac271418df0f1ae022661af3869.tar.gz
made -v produce tip-revision, which was what I wanted in the first place...
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 c4ce039..e3deb68 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 c7ce890..6e339df 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;
}
OpenPOWER on IntegriCloud