Changeset 8 for trunk/Units/UProject.pas


Ignore:
Timestamp:
May 18, 2015, 12:15:30 AM (10 years ago)
Author:
chronos
Message:
  • Added: Checkout form and ability to checkout new working copy.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Units/UProject.pas

    r4 r8  
    1818    FVCSType: TVCSType;
    1919    function GetDirectory: string;
     20    function GetRepositoryURL: string;
    2021    procedure SetDirectory(AValue: string);
     22    procedure SetRepositoryURL(AValue: string);
    2123    procedure SetVCSType(AValue: TVCSType);
    2224  public
     
    2729    property VCSType: TVCSType read FVCSType write SetVCSType;
    2830    property Directory: string read GetDirectory write SetDirectory;
     31    property RepositoryURL: string read GetRepositoryURL write SetRepositoryURL;
    2932  end;
    3033
     
    4144  if FVCSType = AValue then Exit;
    4245  FVCSType := AValue;
    43   WorkingCopy.Free;
     46  FreeAndNil(WorkingCopy);
    4447  case AValue of
    4548    vtSubversion: WorkingCopy := TSubversion.Create;
     
    5356end;
    5457
     58function TProject.GetRepositoryURL: string;
     59begin
     60  Result := WorkingCopy.RepositoryURL;
     61end;
     62
    5563procedure TProject.SetDirectory(AValue: string);
    5664begin
    5765  WorkingCopy.Path := AValue;
     66end;
     67
     68procedure TProject.SetRepositoryURL(AValue: string);
     69begin
     70  WorkingCopy.RepositoryURL := AValue;
    5871end;
    5972
Note: See TracChangeset for help on using the changeset viewer.