Split IBasicVersionControl into IBasicVersionControl (for (D)VCS) and IVersionControl (for VCS)

Andreas Pakulat apaku at gmx.de
Sat Jun 7 19:57:05 UTC 2008


On 07.06.08 19:29:36, Evgeniy Ivanov wrote:
> There are two ways to add DVCS plugins in KDevelop: add the code for 
> IDistributedBasicVersionControl (clone in some places 10 lines with 
> changes for IDistributed) or to
> split IBasicVersionControl into IBasicVersionControl (for (D)VCS) and 
> IVersionControl (for VCS), so in some places IBasicVersionControl may be 
> used both  for VCS and DVCS plugins.
> First approach will not brake current SVN/Perforce/CVS plugins, but we 
> will have about 2-3 ugly functions. Using second we have to do minor 
> changes to VCS plugins, but the code will be looked cute.

Sorry but I don't understand this at all. Can you please provide a patch
for 1 and 2? Also which interface would be implemented by svn/cvs
IVersionControl or IBasicVersionControl?

Note: You can implement multiple interfaces at once, just do
multi-inheritance.

Andreas

-- 
You will get what you deserve.




More information about the KDevelop-devel mailing list