Changeset 5
- Timestamp:
- Sep 1, 2014, 7:26:35 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r4 r5 50 50 end 51 51 end 52 object MenuItem11: TMenuItem 53 Caption = 'Actions' 54 object MenuItem12: TMenuItem 55 Action = Core.ACommandUpdate 56 end 57 object MenuItem13: TMenuItem 58 Action = Core.ACommandCommit 59 end 60 object MenuItem14: TMenuItem 61 Action = Core.ACommandCleanup 62 end 63 object MenuItem15: TMenuItem 64 Action = Core.ACommandCheckout 65 end 66 object MenuItem16: TMenuItem 67 Action = Core.ACommandStatus 68 end 69 end 52 70 object MenuItem1: TMenuItem 53 71 Caption = 'General' -
trunk/Forms/UFormMain.pas
r4 r5 17 17 MenuItem1: TMenuItem; 18 18 MenuItem10: TMenuItem; 19 MenuItem11: TMenuItem; 20 MenuItem12: TMenuItem; 21 MenuItem13: TMenuItem; 22 MenuItem14: TMenuItem; 23 MenuItem15: TMenuItem; 24 MenuItem16: TMenuItem; 19 25 MenuItem2: TMenuItem; 20 26 MenuItem3: TMenuItem; -
trunk/UCore.lfm
r4 r5 36 36 OnExecute = AProjectCloseExecute 37 37 end 38 object ACommandUpdate: TAction 39 Caption = 'Update' 40 OnExecute = ACommandUpdateExecute 41 end 42 object ACommandCleanup: TAction 43 Caption = 'Cleanup' 44 OnExecute = ACommandCleanupExecute 45 end 46 object ACommandCheckout: TAction 47 Caption = 'Checkout' 48 OnExecute = ACommandCheckoutExecute 49 end 50 object ACommandCommit: TAction 51 Caption = 'Commit' 52 OnExecute = ACommandCommitExecute 53 end 54 object ACommandStatus: TAction 55 Caption = 'Status' 56 end 38 57 end 39 58 object ImageList1: TImageList -
trunk/UCore.pas
r4 r5 15 15 TCore = class(TDataModule) 16 16 AAbout: TAction; 17 ACommandUpdate: TAction; 18 ACommandCleanup: TAction; 19 ACommandCheckout: TAction; 20 ACommandCommit: TAction; 21 ACommandStatus: TAction; 17 22 AProjectClose: TAction; 18 23 ActionList1: TActionList; … … 24 29 ImageList1: TImageList; 25 30 OpenDialog1: TOpenDialog; 31 procedure ACommandCheckoutExecute(Sender: TObject); 32 procedure ACommandCleanupExecute(Sender: TObject); 33 procedure ACommandCommitExecute(Sender: TObject); 34 procedure ACommandUpdateExecute(Sender: TObject); 26 35 procedure AProjectCloseExecute(Sender: TObject); 27 36 procedure AProjectOpenExecute(Sender: TObject); … … 89 98 end; 90 99 100 procedure TCore.ACommandUpdateExecute(Sender: TObject); 101 begin 102 Project.WorkingCopy.Update; 103 end; 104 105 procedure TCore.ACommandCleanupExecute(Sender: TObject); 106 begin 107 Project.WorkingCopy.CleanUp; 108 end; 109 110 procedure TCore.ACommandCheckoutExecute(Sender: TObject); 111 begin 112 Project.WorkingCopy.Checkout; 113 end; 114 115 procedure TCore.ACommandCommitExecute(Sender: TObject); 116 begin 117 Project.WorkingCopy.Commit; 118 end; 119 91 120 end. 92 121 -
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 -
trunk/VCSCommander.lpi
r4 r5 72 72 </Item1> 73 73 </RequiredPackages> 74 <Units Count=" 9">74 <Units Count="10"> 75 75 <Unit0> 76 76 <Filename Value="VCSCommander.lpr"/> … … 132 132 <UnitName Value="UProject"/> 133 133 </Unit8> 134 <Unit9> 135 <Filename Value="Forms/UFormConsole.pas"/> 136 <IsPartOfProject Value="True"/> 137 <ComponentName Value="FormConsole"/> 138 <HasResources Value="True"/> 139 <ResourceBaseClass Value="Form"/> 140 <UnitName Value="UFormConsole"/> 141 </Unit9> 134 142 </Units> 135 143 </ProjectOptions> -
trunk/VCSCommander.lpr
r4 r5 9 9 Interfaces, // this includes the LCL widgetset 10 10 Forms, UFormMain, UCore, UFormBrowse, UVCS, UFormFavorites, UFormSettings, 11 U Subversion, UProject11 UFormConsole, USubversion, UProject 12 12 { you can add units after this }; 13 13
Note:
See TracChangeset
for help on using the changeset viewer.