Changeset 8 for trunk/Units/UProject.pas
- Timestamp:
- May 18, 2015, 12:15:30 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Units/UProject.pas
r4 r8 18 18 FVCSType: TVCSType; 19 19 function GetDirectory: string; 20 function GetRepositoryURL: string; 20 21 procedure SetDirectory(AValue: string); 22 procedure SetRepositoryURL(AValue: string); 21 23 procedure SetVCSType(AValue: TVCSType); 22 24 public … … 27 29 property VCSType: TVCSType read FVCSType write SetVCSType; 28 30 property Directory: string read GetDirectory write SetDirectory; 31 property RepositoryURL: string read GetRepositoryURL write SetRepositoryURL; 29 32 end; 30 33 … … 41 44 if FVCSType = AValue then Exit; 42 45 FVCSType := AValue; 43 WorkingCopy.Free;46 FreeAndNil(WorkingCopy); 44 47 case AValue of 45 48 vtSubversion: WorkingCopy := TSubversion.Create; … … 53 56 end; 54 57 58 function TProject.GetRepositoryURL: string; 59 begin 60 Result := WorkingCopy.RepositoryURL; 61 end; 62 55 63 procedure TProject.SetDirectory(AValue: string); 56 64 begin 57 65 WorkingCopy.Path := AValue; 66 end; 67 68 procedure TProject.SetRepositoryURL(AValue: string); 69 begin 70 WorkingCopy.RepositoryURL := AValue; 58 71 end; 59 72
Note:
See TracChangeset
for help on using the changeset viewer.