Changeset 8 for trunk/Units/UVCS.pas
- Timestamp:
- May 18, 2015, 12:15:30 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Units/UVCS.pas
r7 r8 6 6 7 7 uses 8 Classes, SysUtils ;8 Classes, SysUtils, FileUtil; 9 9 10 10 type … … 15 15 private 16 16 FPath: string; 17 FRepositoryURL: string; 17 18 procedure SetPath(AValue: string); 19 procedure SetRepositoryURL(AValue: string); 18 20 protected 19 21 procedure ExecuteProcess(Command: string; Parameters: TStrings); virtual; … … 26 28 procedure Merge; virtual; 27 29 procedure Refresh; virtual; 30 property RepositoryURL: string read FRepositoryURL write SetRepositoryURL; 28 31 property Path: string read FPath write SetPath; 29 32 end; … … 48 51 end; 49 52 53 procedure TWorkingCopy.SetRepositoryURL(AValue: string); 54 begin 55 if FRepositoryURL=AValue then Exit; 56 FRepositoryURL:=AValue; 57 end; 58 50 59 procedure TWorkingCopy.ExecuteProcess(Command: string; Parameters: TStrings); 51 60 begin 52 61 FormConsole.Executable := Command; 53 62 FormConsole.Parameters.Assign(Parameters); 54 FormConsole.WorkingDir := Path; 63 if DirectoryExistsUTF8(Path) then FormConsole.WorkingDir := Path 64 else FormConsole.WorkingDir := ''; 55 65 FormConsole.ShowModal; 56 66 end;
Note:
See TracChangeset
for help on using the changeset viewer.