=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/edit.c,v retrieving revision 1.52 retrieving revision 1.53 diff -u -r1.52 -r1.53 --- src/usr.bin/cvs/edit.c 2016/10/13 20:51:25 1.52 +++ src/usr.bin/cvs/edit.c 2017/06/01 08:08:24 1.53 @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.52 2016/10/13 20:51:25 fcambus Exp $ */ +/* $OpenBSD: edit.c,v 1.53 2017/06/01 08:08:24 joris Exp $ */ /* * Copyright (c) 2006, 2007 Xavier Santolaria * @@ -121,7 +121,7 @@ cr.enterdir = NULL; cr.leavedir = NULL; - if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { + if (cvsroot_is_remote()) { cvs_client_connect_to_server(); cr.fileproc = cvs_client_sendfile; @@ -135,7 +135,7 @@ cvs_file_run(argc, argv, &cr); - if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { + if (cvsroot_is_remote()) { cvs_client_send_files(argv, argc); cvs_client_senddir("."); cvs_client_send_request("edit"); @@ -176,7 +176,7 @@ cr.enterdir = NULL; cr.leavedir = NULL; - if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { + if (cvsroot_is_remote()) { cvs_client_connect_to_server(); cr.fileproc = cvs_client_sendfile; @@ -190,7 +190,7 @@ cvs_file_run(argc, argv, &cr); - if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { + if (cvsroot_is_remote()) { cvs_client_send_files(argv, argc); cvs_client_senddir("."); cvs_client_send_request("editors"); @@ -231,7 +231,7 @@ cr.enterdir = NULL; cr.leavedir = NULL; - if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { + if (cvsroot_is_remote()) { cvs_client_connect_to_server(); cr.fileproc = cvs_client_sendfile; @@ -245,7 +245,7 @@ cvs_file_run(argc, argv, &cr); - if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { + if (cvsroot_is_remote()) { cvs_client_send_files(argv, argc); cvs_client_senddir("."); cvs_client_send_request("unedit");