summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsprog.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-03-14 03:33:31 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-03-14 03:33:31 +0000
commit60bcb76b5082163690969293bc23050d425fd0d2 (patch)
tree0b002f2284034955b28a4864da00f78557f16df1 /usr.bin/rcs/rcsprog.c
parent96f5855fa4eb93ddc3f1f3ff54da6154656c73de (diff)
ci currently doesn't parse the -x flag at all, defaulting to ",v/" every
time. I rewrote checkin_choose_rcsfile() to handle it using these rules: - If a directory structure is given (ci -x,abcd dir/dir2/file) then all RCS files are under dir/dir2. - If the RCS/ directory exists, use it. Otherwise use current directory. - If the -x flag is specified, use those slash-separated extensions. Otherwise, use the default (",v/"). - Look in the rcs directory (RCS/ or current directory) for a file with a matching extension, for each extension. Each extension is tried in order. If a file exists, it is used. If no file exists with any extension, the first one is used. - The empty extension is treated as no extension, because I can't figure out what its special meaning is. It sounds complicated, and the code is kinda complicated as well, but it makes sense if you think about it. ok niallo
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
-rw-r--r--usr.bin/rcs/rcsprog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c
index 295522d1d04..bea11281c5e 100644
--- a/usr.bin/rcs/rcsprog.c
+++ b/usr.bin/rcs/rcsprog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.c,v 1.71 2006/03/14 01:51:35 ray Exp $ */
+/* $OpenBSD: rcsprog.c,v 1.72 2006/03/14 03:33:30 ray Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -29,7 +29,6 @@
#include "rcsprog.h"
#define RCS_CMD_MAXARG 128
-#define RCS_DEFAULT_SUFFIX ",v/"
#define RCSPROG_OPTSTRING "A:a:b::c:e::hik:Lm:Mn:N:qt::TUVx:z:"
#define DESC_PROMPT "enter description, terminated with single '.' " \