| Trees | Indices | Help |
|
|---|
|
|
object --+
|
git.repository.GitRepository --+
|
DebianGitRepository
A git repository that holds the source of a Debian package
|
|||
| Repository Creation | |||
|---|---|---|---|
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
Check if a certain version is stored in this repo. Return it's SHA1 in this case. For legacy tags Don't check only the tag but also the message, since the former wasn't injective until recently. You only need to use this funciton if you also need to check for legacy tags.
|
Generate a tag from a given format and a version >>> DebianGitRepository.version_to_tag("debian/%(version)s", "0:0~0") 'debian/0%0_0' |
sanitize a version so git accepts it as a tag >>> DebianGitRepository._sanitize_version("0.0.0") '0.0.0' >>> DebianGitRepository._sanitize_version("0.0~0") '0.0_0' >>> DebianGitRepository._sanitize_version("0:0.0") '0%0.0' >>> DebianGitRepository._sanitize_version("0%0~0") '0%0_0' |
Extract the version from a tag >>> DebianGitRepository.tag_to_version("upstream/1%2_3-4", "upstream/%(version)s") '1:2~3-4' >>> DebianGitRepository.tag_to_version("foo/2.3.4", "foo/%(version)s") '2.3.4' >>> DebianGitRepository.tag_to_version("foo/2.3.4", "upstream/%(version)s") |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Dec 17 12:37:42 2011 | http://epydoc.sourceforge.net |