From ca2dc5468a2c89208a1eee431613714fd54fc5fa Mon Sep 17 00:00:00 2001 From: niallo Date: Fri, 1 Jun 2007 17:47:47 +0000 Subject: 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@ --- usr.bin/cvs/commit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/commit.c') 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 * Copyright (c) 2006 Xavier Santolaria @@ -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); -- cgit v1.2.3-59-g8ed1b