diff options
author | 2007-06-01 17:47:47 +0000 | |
---|---|---|
committer | 2007-06-01 17:47:47 +0000 | |
commit | ca2dc5468a2c89208a1eee431613714fd54fc5fa (patch) | |
tree | e4ae53637d0f8945b39022b00ad8158a29ebc507 /usr.bin/cvs/commit.c | |
parent | Check return code for resource allocation. (diff) | |
download | wireguard-openbsd-ca2dc5468a2c89208a1eee431613714fd54fc5fa.tar.xz wireguard-openbsd-ca2dc5468a2c89208a1eee431613714fd54fc5fa.zip |
add support for local and remote branch checkout. for example,
cvs co -rOPENBSD_3_0 works now.
along the way, simplify and rationalise code and fix a few nits.
ok joris@ xsa@ ray@
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 38ee6925a6a..4c68519b07f 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.105 2007/02/22 06:42:09 otto Exp $ */ +/* $OpenBSD: commit.c,v 1.106 2007/06/01 17:47:47 niallo Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -239,7 +239,7 @@ cvs_commit_local(struct cvs_file *cf) rcsflags = RCS_CREATE; openflags = O_CREAT | O_TRUNC | O_WRONLY; if (cf->file_rcs != NULL) { - if (cf->file_rcs->rf_inattic == 0) + if (cf->in_attic == 0) cvs_log(LP_ERR, "warning: expected %s " "to be in the Attic", cf->file_path); |