Changeset 24 for trunk/Units/VCS.pas
- Timestamp:
- Apr 5, 2025, 9:45:07 PM (12 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Units/VCS.pas
r23 r24 21 21 end; 22 22 23 TLog List= class(TObjectList<TLogItem>)23 TLogItems = class(TObjectList<TLogItem>) 24 24 end; 25 25 … … 37 37 end; 38 38 39 { TFileStatus List}40 41 TFileStatus List= class(TObjectList<TFileStatus>)39 { TFileStatuses } 40 41 TFileStatuses = class(TObjectList<TFileStatus>) 42 42 function SearchByName(Name: string): TFileStatus; 43 43 end; … … 64 64 procedure Update; virtual; 65 65 procedure CleanUp; virtual; 66 procedure Commit(Message: TStrings); virtual;66 procedure Commit(Message: string); virtual; 67 67 procedure Move(Source, Dest: string); virtual; 68 68 procedure Merge; virtual; … … 70 70 procedure Add(FileName: string); virtual; 71 71 procedure Remove(FileName: string); virtual; 72 procedure GetLog(FileName: string; Log: TLog List); virtual;73 procedure GetStatus(FileName: string; Status: TFileStatus List); virtual;72 procedure GetLog(FileName: string; Log: TLogItems); virtual; 73 procedure GetStatus(FileName: string; Status: TFileStatuses); virtual; 74 74 constructor Create; 75 75 destructor Destroy; override; … … 86 86 ExecutionOutput: TStringList; 87 87 Path: string; 88 SilentExecution: Boolean; 88 89 procedure Init; virtual; 89 90 constructor Create; … … 106 107 begin 107 108 Result := DirName; 108 if Relative then Result := GetCurrentDir UTF8+ DirectorySeparator + Result;109 if Relative then Result := GetCurrentDir + DirectorySeparator + Result; 109 110 Result := 'file:///' + StringReplace(Result, DirectorySeparator, '/', [rfReplaceAll]); 110 111 end; … … 121 122 end; 122 123 123 { TFileStatus List}124 125 function TFileStatus List.SearchByName(Name: string): TFileStatus;124 { TFileStatuses } 125 126 function TFileStatuses.SearchByName(Name: string): TFileStatus; 126 127 var 127 128 I: Integer; … … 145 146 FormConsole.Parameters.Clear; 146 147 FormConsole.Parameters.AddStrings(Parameters); 147 if DirectoryExists UTF8(Path) then FormConsole.WorkingDir := Path148 if DirectoryExists(Path) then FormConsole.WorkingDir := Path 148 149 else FormConsole.WorkingDir := ''; 149 FormConsole.ShowModal; 150 if SilentExecution then FormConsole.Perform 151 else FormConsole.ShowModal; 150 152 ExecutionOutput.Assign(FormConsole.Log); 151 153 finally … … 156 158 procedure TRepository.Init; 157 159 begin 158 159 160 end; 160 161 … … 211 212 FormConsole.Parameters.Clear; 212 213 FormConsole.Parameters.AddStrings(Parameters); 213 if DirectoryExists UTF8(Path) then FormConsole.WorkingDir := Path214 if DirectoryExists(Path) then FormConsole.WorkingDir := Path 214 215 else FormConsole.WorkingDir := ''; 215 216 if SilentExecution then FormConsole.Perform … … 234 235 procedure TWorkingCopy.Checkout; 235 236 begin 236 237 237 end; 238 238 239 239 procedure TWorkingCopy.Update; 240 240 begin 241 242 241 end; 243 242 244 243 procedure TWorkingCopy.CleanUp; 245 244 begin 246 247 end; 248 249 procedure TWorkingCopy.Commit(Message: TStrings); 250 begin 251 245 end; 246 247 procedure TWorkingCopy.Commit(Message: string); 248 begin 252 249 end; 253 250 254 251 procedure TWorkingCopy.Move(Source, Dest: string); 255 252 begin 256 257 253 end; 258 254 259 255 procedure TWorkingCopy.Merge; 260 256 begin 261 262 257 end; 263 258 264 259 procedure TWorkingCopy.Refresh; 265 260 begin 266 267 261 end; 268 262 269 263 procedure TWorkingCopy.Add(FileName: string); 270 264 begin 271 272 265 end; 273 266 274 267 procedure TWorkingCopy.Remove(FileName: string); 275 268 begin 276 277 end; 278 279 procedure TWorkingCopy.GetLog(FileName: string; Log: TLogList); 269 end; 270 271 procedure TWorkingCopy.GetLog(FileName: string; Log: TLogItems); 280 272 begin 281 273 Log.Clear; 282 274 end; 283 275 284 procedure TWorkingCopy.GetStatus(FileName: string; Status: TFileStatus List);276 procedure TWorkingCopy.GetStatus(FileName: string; Status: TFileStatuses); 285 277 begin 286 278 Status.Clear;
Note:
See TracChangeset
for help on using the changeset viewer.