diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-04-24 16:20:34 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-04-24 16:20:34 +0000 |
commit | 1107574eb8dab1269e261ce6d04da5fb3876e49d (patch) | |
tree | fcaad660d95bbfce39ba5264a4ced82b4c2f6be7 /usr.bin/rcs | |
parent | 5c921379eb76a6d0937cc9ebb1cd421e8870447f (diff) |
- the argument to -r is optional
- beef up DESCRIPTION
- better descriptions of -r and -u
- sync usage()
help/ok xsa
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/rcsclean.1 | 27 | ||||
-rw-r--r-- | usr.bin/rcs/rcsclean.c | 6 |
2 files changed, 24 insertions, 9 deletions
diff --git a/usr.bin/rcs/rcsclean.1 b/usr.bin/rcs/rcsclean.1 index 9c7fe6b8ec3..34608815636 100644 --- a/usr.bin/rcs/rcsclean.1 +++ b/usr.bin/rcs/rcsclean.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rcsclean.1,v 1.14 2006/04/19 11:12:54 jmc Exp $ +.\" $OpenBSD: rcsclean.1,v 1.15 2006/04/24 16:20:33 jmc Exp $ .\" .\" Copyright (c) 2005 Joris Vink <joris@openbsd.org> .\" All rights reserved. @@ -26,7 +26,7 @@ .Op Fl k Ns Ar mode .Op Fl n Ns Op Ar rev .Op Fl q Ns Op Ar rev -.Op Fl r Ns Ar rev +.Op Fl r Ns Op Ar rev .Op Fl u Ns Op Ar rev .Op Fl x Ns Ar suffixes .Op Fl z Ns Ar tz @@ -34,7 +34,14 @@ .Sh DESCRIPTION The .Nm -program is used to remove files that are not being worked on. +program is used to clean up (remove) files that are not being worked on. +Only checked out files from the current working directory are removed \(en +.Nm +does not remove files from the RCS repository. +.Pp +Files may be selected by revision or, +where no revision is specified, +the latest revision of the default branch is used. .Pp .Nm also supports @@ -54,12 +61,20 @@ When this option is specified, will show you what it would normally do without doing it. .It Fl q Ns Op Ar rev Be quiet about reporting. -.It Fl r Ns Ar rev -Specify the revision for comparison. +.It Fl r Ns Op Ar rev +Remove revision +.Ar rev . +If +.Ar rev +does not match the revision of the currently checked out file, +.Nm +will do nothing. .It Fl T Preserve the modification time of RCS files. .It Fl u Ns Op Ar rev -Unlock the revision if it's not locked and has not been changed. +Unlock the revision if it's currently locked. +This is only possible if no changes have been made to the file +since it was checked out. .It Fl V Print RCS's version number. .It Fl x Ns Ar suffixes diff --git a/usr.bin/rcs/rcsclean.c b/usr.bin/rcs/rcsclean.c index 8ed5f0fbb34..1201d0166ee 100644 --- a/usr.bin/rcs/rcsclean.c +++ b/usr.bin/rcs/rcsclean.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsclean.c,v 1.40 2006/04/24 08:10:41 xsa Exp $ */ +/* $OpenBSD: rcsclean.c,v 1.41 2006/04/24 16:20:33 jmc Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -120,8 +120,8 @@ void rcsclean_usage(void) { fprintf(stderr, - "usage: rcsclean [-TV] [-kmode] [-n[rev]] [-q[rev]]\n" - " [-rrev] [-u[rev]] [-xsuffixes] [-ztz] [file] ...\n"); + "usage: rcsclean [-TV] [-kmode] [-n[rev]] [-q[rev]] [-r[rev]]\n" + " [-u[rev]] [-xsuffixes] [-ztz] [file] ...\n"); } static void |