You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Roy Fielding <fi...@hyperreal.com> on 1997/06/26 17:32:34 UTC
cvs commit: CVSROOT cvsedit
fielding 97/06/26 08:32:34
Modified: . cvsedit
Log:
Remove the disabled test of return code, hardcode vi path.
Revision Changes Path
1.12 +2 -8 CVSROOT/cvsedit
Index: cvsedit
===================================================================
RCS file: /export/home/cvs/CVSROOT/cvsedit,v
retrieving revision 1.11
retrieving revision 1.12
diff -C3 -r1.11 -r1.12
*** cvsedit 1997/06/26 14:39:07 1.11
--- cvsedit 1997/06/26 15:32:33 1.12
***************
*** 8,14 ****
#
# same rules as CVS
! $editor="vi";
if (defined $ENV{'EDITOR'}) { # $EDITOR overrides default
$editor = $ENV{'EDITOR'};
}
--- 8,14 ----
#
# same rules as CVS
! $editor="/usr/bin/vi";
if (defined $ENV{'EDITOR'}) { # $EDITOR overrides default
$editor = $ENV{'EDITOR'};
}
***************
*** 22,34 ****
$filename = $ARGV[0];
$tmpfile = $filename . "tmp";
! $retcode = system("$editor $filename");
! $retcode /= 256;
!
! if ($retcode) {
! #Disable this since it always fails on remote commits.
! # exit($retcode);
! }
open(IN, "< $filename") ||
die "cvsedit: Cannot open for reading: $filename: $!\n";
--- 22,28 ----
$filename = $ARGV[0];
$tmpfile = $filename . "tmp";
! system("$editor $filename");
open(IN, "< $filename") ||
die "cvsedit: Cannot open for reading: $filename: $!\n";