jasy.vcs package

Submodules

jasy.vcs.Git module

jasy.vcs.Git.cleanRepository()[source]

Cleans git repository from untracked files.

jasy.vcs.Git.distcleanRepository()[source]

Cleans git repository from untracked files. Ignores the files listed in ”.gitignore”.

jasy.vcs.Git.expandVersion(version=None)[source]
jasy.vcs.Git.getBranch(path=None)[source]

Returns the name of the git branch

jasy.vcs.Git.getRevision(path=None)[source]

Returns the last revision/hash of the git repository.

jasy.vcs.Git.getShortRevision(path=None)[source]

Returns the last shortened revision/hash of the git repository

jasy.vcs.Git.isUrl(url)[source]

Figures out whether the given string is a valid Git repository URL

jasy.vcs.Git.update(url, version, path, update=True, submodules=True)[source]

Clones the given repository URL (optionally with overriding/update features)

jasy.vcs.Repository module

jasy.vcs.Repository.clean(path=None)[source]

Cleans repository from untracked files.

Parameters:url (string) – Path to the local repository
jasy.vcs.Repository.distclean(path=None)[source]

Cleans repository from untracked and ignored files. This method is pretty agressive in a way that it deletes all non repository managed files e.g. external folder, uncommitted changes, unstaged files, etc.

Parameters:url (string) – Path to the local repository
jasy.vcs.Repository.getRevision(path=None)[source]

Returns the current revision of the repository in the given path

jasy.vcs.Repository.getTargetFolder(url, version=None)[source]

Returns the target folder name based on the URL and version using SHA1 checksums

Parameters:
  • url (string) – URL to the repository
  • version – Version to use
jasy.vcs.Repository.getType(url)[source]

Returns repository type of the given URL

Parameters:url (string) – URL to the repository
jasy.vcs.Repository.isUrl(url)[source]

Figures out whether the given string is a valid Git repository URL

Parameters:url (string) – URL to the repository
jasy.vcs.Repository.update(url, version=None, path=None, update=True)[source]

Clones the given repository URL (optionally with overriding/update features)

Parameters:
  • url (string) – URL to the repository
  • version – Version to clone
  • version – Destination path
  • version – Eneable/disable update functionality

jasy.vcs.Svn module

jasy.vcs.Svn.getBranch(path=None)[source]

Returns the current branch name

jasy.vcs.Svn.getInfo(path=None)[source]
jasy.vcs.Svn.getRevision(path=None)[source]

Returns the last revision/hash of the svn.

Module contents

Table Of Contents

Previous topic

jasy.test.style package

This Page