summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-05-31 22:26:00 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-05-31 22:26:00 +0000
commit716e0314b64d510286bd82fd5f761ba08a881d50 (patch)
treeeade46f13482673e99452014e1c2d6c59380c46b /usr.bin/cvs/rcs.c
parentb59294d37b551983fbf7b23539b9982c6fb34ab7 (diff)
add support for the export command.
export does exactly the same as checkout except it does not create any administrative (CVS/) directories.
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index ce6e76cbc4d..dc0be399bee 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.178 2006/05/31 18:26:14 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.179 2006/05/31 22:25:59 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -2985,6 +2985,8 @@ rcs_translate_tag(const char *revstr, RCSFILE *rfp)
}
if (brp == NULL) {
+ if (cvs_cmdop == CVS_OP_IMPORT)
+ return (NULL);
rcsnum_cpy(rdp->rd_num, rev, 0);
return (rev);
}