Changeset 5 for trunk/Units
- Timestamp:
- Sep 1, 2014, 7:26:35 PM (10 years ago)
- Location:
- trunk/Units
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Units/USubversion.pas
r4 r5 13 13 14 14 TSubversion = class(TWorkingCopy) 15 protected 16 procedure Execute(Command: string); override; 17 public 15 18 procedure Checkout; override; 16 19 procedure Update; override; … … 25 28 { TSubversion } 26 29 30 procedure TSubversion.Execute(Command: string); 31 begin 32 inherited Execute('svn ' + Command); 33 end; 34 27 35 procedure TSubversion.Checkout; 28 36 begin 29 37 Execute('checkout'); 30 38 end; 31 39 32 40 procedure TSubversion.Update; 33 41 begin 34 42 Execute('update'); 35 43 end; 36 44 37 45 procedure TSubversion.CleanUp; 38 46 begin 39 47 Execute('cleanup'); 40 48 end; 41 49 42 50 procedure TSubversion.Commit; 43 51 begin 44 52 Execute('commit'); 45 53 end; 46 54 47 55 procedure TSubversion.Move; 48 56 begin 49 57 Execute('move'); 50 58 end; 51 59 52 60 procedure TSubversion.Merge; 53 61 begin 54 62 Execute('merge'); 55 63 end; 56 64 -
trunk/Units/UVCS.pas
r4 r5 16 16 FPath: string; 17 17 procedure SetPath(AValue: string); 18 protected 19 procedure Execute(Command: string); virtual; 18 20 public 19 21 procedure Checkout; virtual; … … 34 36 implementation 35 37 38 uses 39 UFormConsole; 36 40 37 41 { TWorkingCopy } … … 39 43 procedure TWorkingCopy.SetPath(AValue: string); 40 44 begin 41 if FPath =AValue then Exit;45 if FPath = AValue then Exit; 42 46 FPath := AValue; 43 47 Refresh; 48 end; 49 50 procedure TWorkingCopy.Execute(Command: string); 51 begin 52 FormConsole.Executable := 'svn'; 53 FormConsole.Parameters.Add(Command); 54 FormConsole.WorkingDir := Path; 55 FormConsole.Perform; 44 56 end; 45 57
Note:
See TracChangeset
for help on using the changeset viewer.