Changeset 13 for trunk/Backends/CVS/UCVS.pas
- Timestamp:
- May 30, 2015, 1:02:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Backends/CVS/UCVS.pas
r10 r13 31 31 procedure Merge; override; 32 32 procedure Add(FileName: string); override; 33 procedure Remove(FileName: string); override; 33 34 end; 34 35 36 { TRepositoryCVS } 37 38 TRepositoryCVS = class(TRepository) 39 protected 40 procedure Execute(Parameters: array of string); 41 public 42 procedure Init; override; 43 end; 44 45 35 46 implementation 47 48 { TRepositoryCVS } 49 50 procedure TRepositoryCVS.Execute(Parameters: array of string); 51 begin 52 ExecuteProcess('/usr/bin/cvs', Parameters); 53 end; 54 55 procedure TRepositoryCVS.Init; 56 begin 57 Execute(['-d ' + GetCurrentDir + DirectorySeparator + Path, 'init']); 58 end; 36 59 37 60 { TBackendCVS } … … 40 63 begin 41 64 Name := 'CVS'; 65 HomePage := 'http://www.nongnu.org/cvs/'; 42 66 WorkingCopyClass := TCVS; 67 RepositoryClass := TRepositoryCVS; 43 68 end; 44 69 … … 52 77 procedure TCVS.Execute(Parameters: array of string); 53 78 begin 79 EnvVars.Values['CVSROOT'] := GetCurrentDir + DirectorySeparator + Path; 54 80 ExecuteProcess('/usr/bin/cvs', Parameters); 55 81 end; … … 93 119 end; 94 120 121 procedure TCVS.Remove(FileName: string); 122 begin 123 DeleteFile(FileName); 124 Execute(['rm', FileName]); 125 end; 126 95 127 end. 96 128
Note:
See TracChangeset
for help on using the changeset viewer.