Questions developing VCS plugin

Aleix Pol aleixpol at kde.org
Thu May 18 00:18:09 UTC 2017


On Mon, May 15, 2017 at 9:23 PM, Frank Fischer
<frank-fischer at shadow-soft.de> wrote:
> Hi,
>
> I have a few questions while working on a kdevelop plugin. If this is
> not the right place to ask, please redirect to the proper place.
>
> I'm currently working on a dvcs plugin for fossil [1]. I have a few
> questions (related to merge and conflicts) about the implementation of
> some methods. In fact, I'm not 100% what some of the methods are
> supposed to do and how different results should be handled.
>
> 1. pull: should this method just pull changesets from remote or should
> it also update the working directory? The git plugin seems to call "git
> pull", so fetching the changesets and updating the working directory
> (unless there are some conflicts). The mercurial plugin calls "hg pull",
> which does not update the working directory. What is the desired
> behaviour? What should happen if there is a conflict? Should the changes
> be merged? How?

It's not set in stone. What do you think that would be best for your users?
Personally I'd say it's worth having the changes integrated but tools vary.

> 2. mergeBranch: how to deal with conflicts? Is there some way to
> initiate a graphical merge (in kdevelop)? The git plugin just seems to
> call "git merge", but what happens in the case of a conflict?

Exactly the same case as pull.
In git what happens is that you get the conflicted files you have to
resolve an commit. Much like would happen on the console...

Aleix


More information about the KDevelop-devel mailing list