[Codestriker-commits] CVS update: codestriker/lib/Codestriker/Repository Subversion.pm
Brought to you by:
sits
|
From: <si...@us...> - 2005-06-09 07:22:23
|
Created Codestriker topic at: http://codestriker.sourceforge.net/cgi-bin/codestriker.pl?topic=1593074&action=view User: sits Date: 05/06/09 00:22:05 Modified: . codestriker.conf lib Codestriker.pm lib/Codestriker/Repository Subversion.pm Log: Make the path to the subversion client specified in the configuration file, as for Win32 systes, this won't be in the web-server's path, and we do this for all the other utilities anyway. Index: codestriker.conf =================================================================== RCS file: /cvsroot/codestriker/codestriker/codestriker.conf,v retrieving revision 1.72 retrieving revision 1.73 diff -u -r1.72 -r1.73 --- codestriker.conf 22 May 2005 11:26:28 -0000 1.72 +++ codestriker.conf 9 Jun 2005 07:22:03 -0000 1.73 @@ -36,6 +36,10 @@ #$cvs = 'c:/Program Files/GNU/WinCvs 1.3/CVSNT/cvs.exe'; $cvs = '/usr/bin/cvs'; +# Location of the svn binary. +#$svn = 'c:/Program Files/SVN/svn.exe'; +$svn = '/usr/bin/svn'; + # Location of the ssh binary. This is only required if a CVS :ext # type repository is used. $ssh = '/usr/local/bin/ssh'; Index: Codestriker.pm =================================================================== RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker.pm,v retrieving revision 1.75 retrieving revision 1.76 diff -u -r1.75 -r1.76 --- Codestriker.pm 7 Jun 2005 22:51:45 -0000 1.75 +++ Codestriker.pm 9 Jun 2005 07:22:04 -0000 1.76 @@ -14,7 +14,7 @@ use Time::Local; # Export codestriker.conf configuration variables. -use vars qw ( $mailhost $use_compression $gzip $cvs $ssh $p4 $vss $bugtracker +use vars qw ( $mailhost $use_compression $gzip $cvs $svn $ssh $p4 $vss $bugtracker @valid_repositories $default_topic_create_mode $default_tabwidth $file_reviewer $db $dbuser $dbpasswd $codestriker_css $NORMAL_MODE $COLOURED_MODE $COLOURED_MONO_MODE $topic_states @@ -27,7 +27,7 @@ ); # Version of Codestriker. -$Codestriker::VERSION = "1.9.0.beta1"; +$Codestriker::VERSION = "1.9.0.beta2"; # Default title to display on each Codestriker screen. $Codestriker::title = "Codestriker $Codestriker::VERSION"; Index: Subversion.pm =================================================================== RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Repository/Subversion.pm,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- Subversion.pm 22 May 2005 11:26:30 -0000 1.9 +++ Subversion.pm 9 Jun 2005 07:22:05 -0000 1.10 @@ -44,8 +44,8 @@ # Replace any spaces with %20 uri friendly escapes. $filename =~ s/ /%20/g; - my $cmd = "svn cat --non-interactive --no-auth-cache " . $self->{userCmdLine} . - " --revision $revision " . + my $cmd = "\"$Codestriker::svn\" cat --non-interactive --no-auth-cache " . + $self->{userCmdLine} . " --revision $revision " . "\"" . $self->{repository_url} . "/$filename\""; my $write_stdin_fh = new FileHandle; @@ -108,8 +108,8 @@ my $filename = $module_name; $filename =~ s/ /%20/g; - my $cmd = "svn cat --non-interactive --no-auth-cache " . $self->{userCmdLine} . - " --revision HEAD " . + my $cmd = "\"$Codestriker::svn\" cat --non-interactive --no-auth-cache " . + $self->{userCmdLine} . " --revision HEAD " . "\"" . $self->{repository_url} . "/$filename\""; my $write_stdin_fh = new FileHandle; @@ -143,8 +143,8 @@ $read_stdout_fh->close(); $read_stderr_fh->close(); - $cmd = "svn diff --non-interactive --no-auth-cache " . $self->{userCmdLine} . - " -r $start_tag:$end_tag " . + $cmd = "\"$Codestriker::svn\" diff --non-interactive --no-auth-cache " . + $self->{userCmdLine} . " -r $start_tag:$end_tag " . "--old \"$self->{repository_url}\" \"$module_name\""; $write_stdin_fh = new FileHandle; |