eric3.VCS.cvsPackage.cvs

Module implementing the version control systems interface to CVS.

Classes

Cvs Class implementing the version control systems interface to CVS.

Functions

None

Cvs

Class implementing the version control systems interface to CVS.

Derived from

VersionControl

Methods

Cvs Constructor
__stripped Private method to give item without the common prefix.
cvsEdit Public method used to edit a file under cvs control.
cvsUnedit Public method used to unedit a file under cvs control.
vcsAdd Public method used to add a file/directory to the cvs repository.
vcsAddBinary Public method used to add a file/directory in binary mode to the cvs repository.
vcsAddTree Public method to add a directory tree rooted at path to the cvs repository.
vcsAllRegisteredStates Public method used to get the registered states of a number of files in the vcs.
vcsCheckout Public method used to check the project out of the cvs repository.
vcsCleanup Public method used to cleanup the local copy.
vcsCommandLine Public method used to execute arbitrary cvs commands.
vcsCommit Public method used to make the change of a file/directory permanent in the cvs repository.
vcsDiff Public method used to view the difference of a file/directory to the cvs repository.
vcsExists Public method used to test for the presence of the cvs executable.
vcsExistsProcExited Private slot connected to the processExited signal.
vcsExistsReadyReadStdout Private slot to handle the readyReadStdout signal.
vcsExport Public method used to export a directory from the cvs repository.
vcsHistory Public method used to view the history of a file/directory in the cvs repository.
vcsImport Public method used to import the project into the cvs repository.
vcsInit Public method used to initialize the cvs repository.
vcsLog Public method used to view the log of a file/directory from the cvs repository.
vcsLogin Public method used to login to the remote repository.
vcsLogout Public method used to logout from the remote repository.
vcsMerge Public method used to merge a tag/branch into the local project.
vcsName Public method returning the name of the vcs.
vcsNewProjectOptionsDialog Public method to get a dialog to enter repository info for getting a new project.
vcsOptionsDialog Public method to get a dialog to enter repository info.
vcsRegisteredState Public method used to get the registered state of a file in the vcs.
vcsRemove Public method used to remove a file/directory from the cvs repository.
vcsRepositoryInfos Public method to retrieve information about the repository.
vcsRevert Public method used to revert changes made to a file/directory.
vcsStatus Public method used to view the status of a file in the cvs repository.
vcsSwitch Public method used to switch a directory to a different tag/branch.
vcsTag Public method used to set the tag of a file/directory in the cvs repository.
vcsUpdate Public method used to update a file/directory with the cvs repository.

Cvs (Constructor)

Cvs(parent=None, name=None)

Constructor

name
name of this object (string or QString)
parent
parent widget (QWidget)

Cvs.__stripped

__stripped(item, wdir)

Private method to give item without the common prefix.

item
the path to make relative (string)
wdir
the working directory (string)
Returns:
a path relative to wdir (string)

Cvs.cvsEdit

cvsEdit(name)

Public method used to edit a file under cvs control. A list of filenames can be passed in as well. In this case it is assumed, that all files are located in the same directory.

name
file name(s) to be edited (string or list of strings)

Cvs.cvsUnedit

cvsUnedit(name)

Public method used to unedit a file under cvs control. A list of filenames can be passed in as well. In this case it is assumed, that all files are located in the same directory.

name
file name(s) to be unedited (string or list of strings)

Cvs.vcsAdd

vcsAdd(name, isDir=0, binary=0)

Public method used to add a file/directory to the cvs repository.

binary
flag indicating a binary add (boolean)
isDir
flag indicating name is a directory (boolean)
name
file/directory name to be added (string)

Cvs.vcsAddBinary

vcsAddBinary(name, isDir=0)

Public method used to add a file/directory in binary mode to the cvs repository.

isDir
flag indicating name is a directory (boolean)
name
file/directory name to be added (string)

Cvs.vcsAddTree

vcsAddTree(path)

Public method to add a directory tree rooted at path to the cvs repository.

path
root directory of the tree to be added (string)

Cvs.vcsAllRegisteredStates

vcsAllRegisteredStates(names, dname)

Public method used to get the registered states of a number of files in the vcs.

dname
directory to check in (string)
names
dictionary with all filenames to be checked as keys
Returns:
the received dictionary completed with a combination of canBeCommited and canBeAdded or None in order to signal an error

Cvs.vcsCheckout

vcsCheckout(vcsDir, project, projectDir, noDialog=0, tag=None)

Public method used to check the project out of the cvs repository.

noDialog
flag indicating quiet operations
project
name of the archive (string)
projectDir
project directory to create (string)
tag
tag of version to check out (string)
vcsDir
name of the VCS directory (string)
Returns:
flag indicating an execution without errors (boolean)

Cvs.vcsCleanup

vcsCleanup(name)

Public method used to cleanup the local copy.

name
directory name to be cleaned up (string)

Cvs.vcsCommandLine

vcsCommandLine(name)

Public method used to execute arbitrary cvs commands.

name
directory name of the working directory (string)

Cvs.vcsCommit

vcsCommit(name, message, noDialog=0)

Public method used to make the change of a file/directory permanent in the cvs repository.

message
message for this operation (string)
name
file/directory name to be committed (string)
noDialog
flag indicating quiet operations
Returns:
flag indicating an execution without errors (boolean)

Cvs.vcsDiff

vcsDiff(name)

Public method used to view the difference of a file/directory to the cvs repository. If name is a directory and is the project directory, all project files are save first. If name is a file, which is being edited and has unsaved modification, they can be saved or the operation may be aborted.

name
file/directory name to be diffed (string)

Cvs.vcsExists

vcsExists()

Public method used to test for the presence of the cvs executable.

Returns:
flag indicating the existance (boolean)

Cvs.vcsExistsProcExited

vcsExistsProcExited()

Private slot connected to the processExited signal.

Cvs.vcsExistsReadyReadStdout

vcsExistsReadyReadStdout()

Private slot to handle the readyReadStdout signal. It reads the output of the process and buffers it..

Cvs.vcsExport

vcsExport(vcsDir, project, projectDir, tag=None)

Public method used to export a directory from the cvs repository.

project
name of the archive (string)
projectDir
project directory to create (string)
tag
tag of version to check out (string)
vcsDir
name of the VCS directory (string)
Returns:
flag indicating an execution without errors (boolean)

Cvs.vcsHistory

vcsHistory(name)

Public method used to view the history of a file/directory in the cvs repository.

name
file/directory name to show the history for (string)

Cvs.vcsImport

vcsImport(vcsDir, message, project, vendor, release, projectDir, noDialog=0)

Public method used to import the project into the cvs repository.

message
message for this operation (string)
noDialog
flag indicating quiet operations
project
name of the archive (string)
projectDir
project directory to create (string)
release
release version string (string)
vcsDir
name of the VCS directory (string)
vendor
vendor string (string)
Returns:
flag indicating an execution without errors (boolean)

Cvs.vcsInit

vcsInit(vcsDir, noDialog=0)

Public method used to initialize the cvs repository.

noDialog
flag indicating quiet operations (boolean)
vcsDir
name of the VCS directory (string)
Returns:
flag indicating an execution without errors (boolean)

Cvs.vcsLog

vcsLog(name)

Public method used to view the log of a file/directory from the cvs repository.

name
file/directory name to show the log for (string)

Cvs.vcsLogin

vcsLogin(protocol, user, passwd, host, port, repository)

Public method used to login to the remote repository.

host
hostname (string)
passwd
password (string)
port
port of the server (string)
protocol
protocol to be used to access repository (string)
repository
repository name (string)
user
user name (string)

Cvs.vcsLogout

vcsLogout(protocol, user, host, port, repository)

Public method used to logout from the remote repository.

host
hostname (string)
port
port of the server (string)
protocol
protocol to be used to access repository (string)
repository
repository name (string)
user
user name (string)

Cvs.vcsMerge

vcsMerge(name)

Public method used to merge a tag/branch into the local project.

name
file/directory name to be merged (string)

Cvs.vcsName

vcsName()

Public method returning the name of the vcs.

Returns:
always 'CVS' (string)

Cvs.vcsNewProjectOptionsDialog

vcsNewProjectOptionsDialog(parent = None)

Public method to get a dialog to enter repository info for getting a new project.

parent
parent widget (QWidget)

Cvs.vcsOptionsDialog

vcsOptionsDialog(project, archive, editable=0, parent=None)

Public method to get a dialog to enter repository info.

archive
name of the project in the repository (string)
editable
flag indicating that the project name is editable (boolean)
parent
parent widget (QWidget)
project
reference to the project object

Cvs.vcsRegisteredState

vcsRegisteredState(name)

Public method used to get the registered state of a file in the vcs.

name
filename to check (string)
Returns:
a combination of canBeCommited and canBeAdded or 0 in order to signal an error

Cvs.vcsRemove

vcsRemove(name, project=0)

Public method used to remove a file/directory from the cvs repository. The default operation is to remove the local copy as well.

name
file/directory name to be removed (string)
project
flag indicating deletion of a project tree (boolean)
Returns:
flag indicating successfull operation (boolean)

Cvs.vcsRepositoryInfos

vcsRepositoryInfos(ppath)

Public method to retrieve information about the repository.

ppath
local path to get the repository infos (string)
Returns:
string with ready formated info for display (QString)

Cvs.vcsRevert

vcsRevert(name)

Public method used to revert changes made to a file/directory.

name
file/directory name to be reverted (string)

Cvs.vcsStatus

vcsStatus(name)

Public method used to view the status of a file in the cvs repository.

name
file/directory name to show the status for (string)

Cvs.vcsSwitch

vcsSwitch(name)

Public method used to switch a directory to a different tag/branch.

name
directory name to be switched (string)

Cvs.vcsTag

vcsTag(name)

Public method used to set the tag of a file/directory in the cvs repository.

name
file/directory name to be tagged (string)

Cvs.vcsUpdate

vcsUpdate(name)

Public method used to update a file/directory with the cvs repository.

name
file/directory name to be updated (string)

Up