Changeset 4 for trunk/Units


Ignore:
Timestamp:
Sep 1, 2014, 7:10:03 PM (10 years ago)
Author:
chronos
Message:
  • Added: Concept of project and open project as directory.
Location:
trunk/Units
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Units/USubversion.pas

    r3 r4  
    1212  { TSubversion }
    1313
    14   TSubversion = class(TVCS)
    15     procedure Checkout;
    16     procedure Update;
    17     procedure CleanUp;
    18     procedure Commit;
    19     procedure Move;
    20     procedure Merge;
     14  TSubversion = class(TWorkingCopy)
     15    procedure Checkout; override;
     16    procedure Update; override;
     17    procedure CleanUp; override;
     18    procedure Commit; override;
     19    procedure Move; override;
     20    procedure Merge; override;
    2121  end;
    2222
  • trunk/Units/UVCS.pas

    r2 r4  
    99
    1010type
     11
     12  { TWorkingCopy }
     13
    1114  TWorkingCopy = class
    12     Path: string;
     15  private
     16    FPath: string;
     17    procedure SetPath(AValue: string);
     18  public
     19    procedure Checkout; virtual;
     20    procedure Update; virtual;
     21    procedure CleanUp; virtual;
     22    procedure Commit; virtual;
     23    procedure Move; virtual;
     24    procedure Merge; virtual;
     25    procedure Refresh; virtual;
     26    property Path: string read FPath write SetPath;
    1327  end;
    1428
     
    1731  end;
    1832
     33
    1934implementation
     35
     36
     37{ TWorkingCopy }
     38
     39procedure TWorkingCopy.SetPath(AValue: string);
     40begin
     41  if FPath=AValue then Exit;
     42  FPath := AValue;
     43  Refresh;
     44end;
     45
     46procedure TWorkingCopy.Checkout;
     47begin
     48
     49end;
     50
     51procedure TWorkingCopy.Update;
     52begin
     53
     54end;
     55
     56procedure TWorkingCopy.CleanUp;
     57begin
     58
     59end;
     60
     61procedure TWorkingCopy.Commit;
     62begin
     63
     64end;
     65
     66procedure TWorkingCopy.Move;
     67begin
     68
     69end;
     70
     71procedure TWorkingCopy.Merge;
     72begin
     73
     74end;
     75
     76procedure TWorkingCopy.Refresh;
     77begin
     78
     79end;
    2080
    2181end.
Note: See TracChangeset for help on using the changeset viewer.