diff options
author | 2017-06-01 08:08:24 +0000 | |
---|---|---|
committer | 2017-06-01 08:08:24 +0000 | |
commit | 4dcde51379711c241d4d9b93f9d4e9eae2d51f3d (patch) | |
tree | 22632a1596b31f59c0f619e787bb1833396c8538 /usr.bin/cvs/commit.c | |
parent | update currency exchange rates; (diff) | |
download | wireguard-openbsd-4dcde51379711c241d4d9b93f9d4e9eae2d51f3d.tar.xz wireguard-openbsd-4dcde51379711c241d4d9b93f9d4e9eae2d51f3d.zip |
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().
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -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; |