jasy.vcs package¶
Submodules¶
jasy.vcs.Git module¶
-
jasy.vcs.Git.
distcleanRepository
()[source]¶ Cleans git repository from untracked files.
Ignores the files listed in ”.gitignore”.
-
jasy.vcs.Git.
getShortRevision
(path=None)[source]¶ Returns the last shortened revision/hash of the git repository.
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