Changeset 18 for trunk/Backends/Subversion/USubversion.pas
- Timestamp:
- Nov 6, 2017, 1:14:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Backends/Subversion/USubversion.pas
r16 r18 50 50 51 51 procedure TRepositorySubversion.Execute(Parameters: array of string); 52 var 53 ToolPath: string; 52 54 begin 53 55 {$IFDEF Linux} 54 ExecuteProcess('/usr/bin/svnadmin', Parameters);56 ToolPath := '/usr/bin/svnadmin'; 55 57 {$ENDIF} 56 58 {$IFDEF Windows} 57 ExecuteProcess('c:\Program Files\Subversion\bin\svnadmin.exe', Parameters); 58 {$ENDIF} 59 ToolPath := 'c:\Program Files\Subversion\bin\svnadmin.exe'; 60 if not FileExists(ToolPath) then 61 ToolPath := 'C:\Program Files\TortoiseSVN\bin\svnadmin.exe'; 62 {$ENDIF} 63 ExecuteProcess(ToolPath, Parameters); 59 64 end; 60 65 … … 83 88 84 89 procedure TSubversion.Execute(Parameters: array of string); 90 var 91 ToolPath: string; 85 92 begin 86 93 {$IFDEF Linux} 87 ExecuteProcess('/usr/bin/svn', Parameters);94 ToolPath := '/usr/bin/svn'; 88 95 {$ENDIF} 89 96 {$IFDEF Windows} 90 ExecuteProcess('c:\Program Files\Subversion\bin\svn.exe', Parameters); 91 {$ENDIF} 97 ToolPath := 'c:\Program Files\Subversion\bin\svn.exe'; 98 if not FileExists(ToolPath) then 99 ToolPath := 'C:\Program Files\TortoiseSVN\bin\svn.exe'; 100 {$ENDIF} 101 ExecuteProcess(ToolPath, Parameters); 92 102 end; 93 103
Note:
See TracChangeset
for help on using the changeset viewer.