=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/commit.c,v retrieving revision 1.157 retrieving revision 1.158 diff -u -r1.157 -r1.158 --- src/usr.bin/cvs/commit.c 2017/05/31 16:48:16 1.157 +++ src/usr.bin/cvs/commit.c 2017/06/01 08:08:24 1.158 @@ -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 @@ 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_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 @@ 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;