VCS Interface classes

Jakob Petsovits jpetso at gmx.at
Mon Apr 30 14:29:33 UTC 2007


On Monday, 30. April 2007, Andreas Pakulat wrote:
> On 30.04.07 14:29:50, Jakob Petsovits wrote:
> > On Monday, 30. April 2007, Andreas Pakulat wrote:
> > > > * repositoryRevision() vs. localRevision() - what is the difference
> > > > here?
> > >
> > > Simple: repositoryRevision() will give you the revision of that file on
> > > the repository, local will give you the local revision (i.e. svn info
> > > foobar, for example). This is the same after update() or commit() but
> > > might be different in other times.
> >
> > Obviously doesn't apply to SVN and CVS (everything except the checksum
> > stays the same), but if you say it's necessary for other VCSs, I'll
> > believe you :)
>
> No, the repositoryRevision can differ from the localRevision if somebody
> else does something to the same file (without the local file being
> updated). I think this is more or less just convenience for scripts
> which can this way easily find out wether the file is up-to-date or not
> (without having to execute a full status on the parent dir).

Ah! Now I get it.
Sure as hell, this stuff has to be documented very nicely.

> > Had a short look at the other files, and they look fine - except for the
> > distributed interface, I haven't got enough knowledge of how that works.
>
> Yeah, me neither. I once used svk shortly but I really have no idea
> wether push/pull is all thats needed and which parameters are needed
> there.

I'll do an analysis of how git works in June, but no idea if it still matters 
at that time :-P

Jakob!




More information about the KDevelop-devel mailing list