VCS Interface classes
Andreas Pakulat
apaku at gmx.de
Mon Apr 30 19:23:37 UTC 2007
On 30.04.07 13:37:28, Matthew Woehlke wrote:
> Andreas Pakulat wrote:
> > QVariant is used to make it easier to check wether its a QString or KUrl
> > (i.e. repo path or local url). And type may be number or date, so you
> > can fetch a date if you want.
>
> Does this mean that all places that take both will be QVariant?
Yeap, but I don't think there will be many.
> >> I also realized something unfortunate, but probably unavoidable... it is
> >> really hard to get the repo version of a directory with perforce. All I
> >> can figure out to do is get the file version of every file in the
> >> specified path and compare that to the log() of that path, working
> >> backwards until you find the revision at which point going further back
> >> would mean reverting to an earlier version of some file in that path.
> >
> > Uhm, latestRevision may return an empty Revision object (i.e. type ==
> > invalid or something like that), so you can do that for directories.
>
> ...but we should only do that if that's what other plug-ins (e.g. svn)
> do. Otherwise IMO it should be implemented, even if it's ugly as heck.
Agreed and svn allows to get revision for a dir.
Andreas
--
You will reach the highest possible point in your business or profession.
More information about the KDevelop-devel
mailing list