• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

vcs

KDevelop::IDistributedVersionControl

KDevelop::IDistributedVersionControl Class Reference

#include <idistributedversioncontrol.h>

Inheritance diagram for KDevelop::IDistributedVersionControl:

Inheritance graph
[legend]

List of all members.


Detailed Description

This interface has methods to support distributed version control systems like git or svk.

Definition at line 37 of file idistributedversioncontrol.h.


Public Member Functions

virtual VcsJob * add_dvcs (const KUrl &repository, const KUrl::List &localLocations)=0
virtual VcsJob * clone (const VcsLocation &localOrRepoLocationSrc, const KUrl &localRepositoryRoot)=0
virtual VcsJob * init (const KUrl &localRepositoryRoot)=0
virtual VcsJob * pull (const VcsLocation &localOrRepoLocationSrc, const KUrl &localRepositoryLocation)=0
virtual VcsJob * push (const KUrl &localRepositoryLocation, const VcsLocation &localOrRepoLocationDst)=0
virtual VcsJob * reset (const KUrl &repository, const QStringList &args, const KUrl::List &files)=0

Member Function Documentation

virtual VcsJob* KDevelop::IDistributedVersionControl::add_dvcs ( const KUrl &  repository,
const KUrl::List &  localLocations 
) [pure virtual]

Add file contents to the index.

It can be implemented in the same way as IBasicVC::add. But since IBasicVC::add is used just to add files to the repo, we have to add this method to the interface. The only difference is that IBasicVC::add is disabled for files, which are already in DVCS.

Parameters:
repository repository path.
localLocations list of files to add.

Implemented in KDevelop::DistributedVersionControlPlugin.

virtual VcsJob* KDevelop::IDistributedVersionControl::clone ( const VcsLocation &  localOrRepoLocationSrc,
const KUrl &  localRepositoryRoot 
) [pure virtual]

Create a new repository by cloning another one into a newly created local directory, including all of the other repository's history.

Parameters:
localOrRepoLocationSrc The repository that will be cloned.
localRepositoryRoot The root folder of the newly created repository.

Implemented in KDevelop::DistributedVersionControlPlugin.

virtual VcsJob* KDevelop::IDistributedVersionControl::init ( const KUrl &  localRepositoryRoot  )  [pure virtual]

Create a new repository inside the given local directory.

Implemented in KDevelop::DistributedVersionControlPlugin.

virtual VcsJob* KDevelop::IDistributedVersionControl::pull ( const VcsLocation &  localOrRepoLocationSrc,
const KUrl &  localRepositoryLocation 
) [pure virtual]

Import revisions from another repository the local one, but don't yet merge them into the working copy.

Parameters:
localOrRepoLocationSrc The repository which contains the revisions to be pulled.
localRepositoryLocation Any location inside the local repository.

Implemented in KDevelop::DistributedVersionControlPlugin.

virtual VcsJob* KDevelop::IDistributedVersionControl::push ( const KUrl &  localRepositoryLocation,
const VcsLocation &  localOrRepoLocationDst 
) [pure virtual]

Export the locally committed revisions to another repository.

Parameters:
localRepositoryLocation Any location inside the local repository.
localOrRepoLocationDst The repository which will receive the pushed revisions.

Implemented in KDevelop::DistributedVersionControlPlugin.

virtual VcsJob* KDevelop::IDistributedVersionControl::reset ( const KUrl &  repository,
const QStringList &  args,
const KUrl::List &  files 
) [pure virtual]

Reset current HEAD to the specified state.

Parameters:
repository local repository.
args dvcs-reset arguments.
files filelist for resetting.

Implemented in KDevelop::DistributedVersionControlPlugin.


The documentation for this class was generated from the following file:
  • idistributedversioncontrol.h

vcs

Skip menu "vcs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal