From 4dcde51379711c241d4d9b93f9d4e9eae2d51f3d Mon Sep 17 00:00:00 2001 From: joris Date: Thu, 1 Jun 2017 08:08:24 +0000 Subject: Stop looking at current_cvsroot->cr_method to figure out if we're remote or not. Instead use cvsroot_is_local() and cvsroot_is_remote(). --- usr.bin/cvs/commit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/cvs/commit.c') diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index d15aaec8d1c..c2b39832062 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.157 2017/05/31 16:48:16 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.158 2017/06/01 08:08:24 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria @@ -135,7 +135,7 @@ cvs_commit(int argc, char **argv) if (RB_EMPTY(&files_affected)) return (0); - if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { + if (cvsroot_is_remote()) { if (logmsg == NULL) { logmsg = cvs_logmsg_create(NULL, &files_added, &files_removed, &files_modified); @@ -308,7 +308,7 @@ cvs_commit_check_files(struct cvs_file *cf) cvs_log(LP_TRACE, "cvs_commit_check_files(%s)", cf->file_path); - if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) + if (cvsroot_is_remote()) cvs_remote_classify_file(cf); else cvs_file_classify(cf, cvs_directory_tag); @@ -355,7 +355,7 @@ cvs_commit_check_files(struct cvs_file *cf) return; } - if (current_cvsroot->cr_method == CVS_METHOD_LOCAL) { + if (cvsroot_is_local()) { tag = cvs_directory_tag; if (cf->file_ent != NULL) tag = cf->file_ent->ce_tag; -- cgit v1.2.3-59-g8ed1b