Changeset 18
- Timestamp:
- Nov 6, 2017, 1:14:20 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 7 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 -
trunk/Packages/Common/UXMLUtils.pas
r15 r18 97 97 if Pos('Z', XMLDateTime) > 0 then 98 98 LeftCutString(XMLDateTime, Part, 'Z'); 99 SecondFraction := StrToFloat('0 .'+ Part);99 SecondFraction := StrToFloat('0' + DecimalSeparator + Part); 100 100 Millisecond := Trunc(SecondFraction * 1000); 101 101 end else begin -
trunk/Packages/TemplateGenerics/Generic/GenericMatrix.inc
r6 r18 50 50 function Implode(RowSeparator, ColSeparator: string; Converter: TToStringConverter): string; 51 51 procedure Explode(Text, Separator: string; Converter: TFromStringConverter; SlicesCount: Integer = -1); 52 function IndexOf(Item: TGMatrixItem; Start: TIndex = 0): TIndex;53 function IndexOfList(List: TGMatrix; Start: TIndex = 0): TIndex;52 function IndexOf(Item: TGMatrixItem; Start: TIndex): TIndex; 53 function IndexOfList(List: TGMatrix; Start: TIndex): TIndex; 54 54 procedure Insert(Index: TIndex; Item: TGMatrixItem); 55 55 procedure InsertList(Index: TIndex; List: TGMatrix); -
trunk/UCore.lfm
r13 r18 105 105 end 106 106 object XMLConfig1: TXMLConfig 107 Filename = 'Config.xml'108 107 StartEmpty = False 109 108 RootName = 'CONFIG' 109 ReadOnly = False 110 110 left = 96 111 111 top = 96 -
trunk/UCore.pas
r15 r18 7 7 uses 8 8 Classes, SysUtils, XMLConf, FileUtil, ActnList, Controls, UVCS, UProject, 9 ULastOpenedList, Forms, Dialogs, Contnrs, UBackend;9 ULastOpenedList, Forms, Dialogs, Menus, Contnrs, UBackend; 10 10 11 11 type … … 113 113 begin 114 114 Backends := TObjectList.Create; 115 Project := nil; 115 116 end; 116 117 … … 181 182 XMLConfig1.SetValue('UserName', UserName); 182 183 XMLConfig1.SetValue('Email', Email); 184 XmlConfig1.Flush; 183 185 end; 184 186 … … 186 188 begin 187 189 RegisterBackends; 190 XMLConfig1.Filename := GetAppConfigDir(False) + 'Config.xml'; 191 ForceDirectoriesUTF8(ExtractFileDir(XMLConfig1.Filename)); 188 192 LoadConfig; 189 193 if (LastOpenedListProject.Items.Count > 0) and DirectoryExistsUTF8(LastOpenedListProject.Items[0]) then -
trunk/VCSCommander.lpi
r17 r18 2 2 <CONFIG> 3 3 <ProjectOptions> 4 <Version Value=" 9"/>4 <Version Value="10"/> 5 5 <General> 6 6 <SessionStorage Value="InProjectDir"/>
Note:
See TracChangeset
for help on using the changeset viewer.