VCS interface

Aleix Pol aleixpol at kde.org
Thu Apr 22 17:02:25 UTC 2010


On Thu, Apr 22, 2010 at 6:39 PM, Andreas Pakulat <apaku at gmx.de> wrote:

> On 22.04.10 17:54:22, Aleix Pol wrote:
> > Hi,
> > There's a bug that's being triggered from the git plugin when commiting
> > sometimes.
> > The problem is in this line:
> > kdevplatform/vcs/widgets/vcscommitdialog.cpp:261. The git support is
> > returning a null job, I was about to add an if there just to check if it
> has
> > to be run but I was wondering then if we will have to do that on every
> case
> > and add documentation for that. So what do you think we should do there?
> >
> > SVN and CVS suppoort never return null jobs, do they?
>
> Without looking at the code: A vcs plugin should never return a null job,
> even if the parameters are wrong it should still create a job and let that
> job fail early on inside of start(). Hence git returning a null job for an
> interface method means its breaking the interface. This may mean we need to
> split out the function from the interface.
>
> Andreas
>
> --
> Your reasoning powers are good, and you are a fairly good planner.
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>

good, that's the answer I wanted to get :P

I'll look into removing all this return 0 in git support :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100422/162ec684/attachment.html>


More information about the KDevelop-devel mailing list