Ignore:
Timestamp:
Nov 6, 2017, 1:14:20 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Build with newer Lazarus version.
  • Fixed: Creation of application configuration file.
  • Fixed: Wrong decimal point used for XML datetime decode.
  • Added: Detect Subversion exe files from TortoiseSVN directory on Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Backends/Subversion/USubversion.pas

    r16 r18  
    5050
    5151procedure TRepositorySubversion.Execute(Parameters: array of string);
     52var
     53  ToolPath: string;
    5254begin
    5355  {$IFDEF Linux}
    54   ExecuteProcess('/usr/bin/svnadmin', Parameters);
     56  ToolPath := '/usr/bin/svnadmin';
    5557  {$ENDIF}
    5658  {$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);
    5964end;
    6065
     
    8388
    8489procedure TSubversion.Execute(Parameters: array of string);
     90var
     91  ToolPath: string;
    8592begin
    8693  {$IFDEF Linux}
    87   ExecuteProcess('/usr/bin/svn', Parameters);
     94  ToolPath := '/usr/bin/svn';
    8895  {$ENDIF}
    8996  {$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);
    92102end;
    93103
Note: See TracChangeset for help on using the changeset viewer.