httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roy Fielding <field...@hyperreal.com>
Subject cvs commit: CVSROOT cvsedit
Date Thu, 26 Jun 1997 15:32:34 GMT
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";
  
  
  

Mime
View raw message