VCS Branch interface extension

Laszlo Papp djszapi at archlinux.us
Mon Jun 6 21:58:11 UTC 2011


Hi,

We have just discussed the IBranchingVersionControl with Aleix here in
Randa so that I would need some extensions, if it is possible. It
needs the real implementation in the plugins, like git, et cetera.
Any feedback is welcome!

Thank you in advance!

Best Regards,
Laszlo Papp

    /**
     * Switches to the desired branch inside the specified repository
     *
     * @param repository The repository path where the branch will be switched
     * @param branch The branch name that will be switched to inside
the specified repostory
     */
    virtual VcsJob* switchBranch(const QString &repository, const
QString &branch) = 0;

    /**
     * Returns the branches inside the specified repository
     *
     * @param repository The repository path where the branches will
be returned from
     */
    virtual VcsJob* branches(const QString &repository) = 0;

    /**
     * Returns the current branch inside the specified repository
     *
     * @param repository The repository path where the current branch
will be returned from
     */
    virtual VcsJob* currentBranch(const QString &repository) = 0;

    /**
     * Deletes the desired branch inside the specified repository
     *
     * @param repository The repository path where the current branch
will be deleted from
     * @param branch The branch name that will be deleted inside the
specified repository
     */
    virtual VcsJob* deleteBranch(const QString &repository, const
QString &branch) = 0;




More information about the KDevelop-devel mailing list