Changeset 13 for trunk/Backends
- Timestamp:
- May 30, 2015, 1:02:36 PM (10 years ago)
- Location:
- trunk/Backends
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Backends/Bazaar/UBazaar.pas
r10 r13 20 20 21 21 TBazaar = class(TWorkingCopy) 22 private 22 23 protected 23 24 procedure Execute(Parameters: array of string); … … 30 31 procedure Merge; override; 31 32 procedure Add(FileName: string); override; 33 procedure Remove(FileName: string); override; 32 34 end; 33 35 36 { TRepositoryBazaar } 37 38 TRepositoryBazaar = class(TRepository) 39 protected 40 procedure Execute(Parameters: array of string); 41 public 42 procedure Init; override; 43 end; 44 45 34 46 implementation 47 48 { TRepositoryBazaar } 49 50 procedure TRepositoryBazaar.Execute(Parameters: array of string); 51 begin 52 ExecuteProcess('/usr/bin/bzr', Parameters); 53 end; 54 55 procedure TRepositoryBazaar.Init; 56 begin 57 Execute(['init', Path]); 58 end; 35 59 36 60 { TBazaar } … … 76 100 end; 77 101 102 procedure TBazaar.Remove(FileName: string); 103 begin 104 Execute(['remove', FileName]); 105 end; 106 78 107 { TBackendBazaar } 79 108 … … 81 110 begin 82 111 Name := 'Bazaar'; 112 HomePage := 'http://bazaar.canonical.com/'; 83 113 WorkingCopyClass := TBazaar; 84 114 end; -
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 -
trunk/Backends/Subversion/USubversion.pas
r11 r13 31 31 procedure Merge; override; 32 32 procedure Add(FileName: string); override; 33 procedure Remove(FileName: string); override; 33 34 procedure GetLog(FileName: string; Log: TLogList); override; 34 35 end; 35 36 37 { TRepositorySubversion } 38 39 TRepositorySubversion = class(TRepository) 40 protected 41 procedure Execute(Parameters: array of string); 42 public 43 procedure Init; override; 44 end; 45 36 46 implementation 47 48 { TRepositorySubversion } 49 50 procedure TRepositorySubversion.Execute(Parameters: array of string); 51 begin 52 ExecuteProcess('/usr/bin/svnadmin', Parameters); 53 end; 54 55 procedure TRepositorySubversion.Init; 56 begin 57 Execute(['create', Path]); 58 end; 37 59 38 60 { TBackendSubversion } … … 41 63 begin 42 64 Name := 'Subversion'; 65 HomePage := 'https://subversion.apache.org/'; 43 66 WorkingCopyClass := TSubversion; 67 RepositoryClass := TRepositorySubversion; 44 68 end; 45 69 … … 92 116 end; 93 117 118 procedure TSubversion.Remove(FileName: string); 119 begin 120 Execute(['remove', FileName]); 121 end; 122 94 123 procedure TSubversion.GetLog(FileName: string; Log: TLogList); 95 124 var
Note:
See TracChangeset
for help on using the changeset viewer.