Home | Trees | Index | Help |
---|
Package pybaz :: Class Patchlog |
|
object
--+
|
Patchlog
Log entry associated to a revision.
May be produced by Revision.patchlog
or ArchSourceTree.iter_logs()
. It
provides an extensive summary of the associated changeset, a natural
language description of the changes, and any number of user-defined
extension headers.
Patchlogs are formatted according to RFC-822, and are parsed using the standard email-handling facilities.
Note that the patchlog text is not actually parsed before it is needed.
That deferred evaluation feature is implemented in the _parse
method.
The fundamental accessors are __getitem__
, which give the text of a named
patchlog header, and the description
property which gives the text of the
patchlog body, that is anything after the headers.
Additional properties provide appropriate standard conversion of the standard headers.
Method Summary | |
---|---|
Patchlog associated to the given revision. | |
str, None |
Text of a patchlog header by name. |
__repr__(self)
| |
|
Deprecated. |
str |
Deprecated. |
local time tuple |
Deprecated. |
str |
Deprecated. |
iterable of |
Deprecated. |
iterable of |
Deprecated. |
iterable of |
Deprecated. |
iterable of |
Deprecated. |
iterable of |
Deprecated. |
dict |
Deprecated. |
Deprecated. | |
str |
Deprecated. |
list of 2-tuple of str |
List of 2-tuples containing all headers and values. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Property Summary | |
---|---|
|
continuation : Deprecated. |
|
continuation_of : Ancestor of tag revisions. |
str |
creator : User id of the the creator of the associated revision. |
local time tuple |
date : Time of the associated revision. |
str |
description : Patchlog body, a long natural language description. |
fromlib | |
iterable of |
merged_patches : Revisions merged in this revision. |
iterable of |
modified_files : Names of source files modified in the associated revision. |
iterable of |
new_files : Source files added in the associated revision. |
iterable of |
new_patches : New-patches header as an iterable of Revision. |
iterable of |
removed_files : Names of source files removed in the associated revision. |
dict |
renamed_files : Source files renames in the associated revision. |
revision : Revision associated to this patchlog. | |
str |
summary : Patchlog summary, a one-line natural language description. |
tree |
Method Details |
---|
__init__(self,
revision,
tree=None,
fromlib=False)
|
__getitem__(self,
header)
|
get_continuation(self)Deprecated. Ancestor of tag revisions. None for commit and import revisions.
|
get_creator(self)Deprecated. User id of the the creator of the associated revision.
|
get_date(self)Deprecated. For the description of the local time tuple, see the
documentation of the
|
get_description(self)Deprecated. Patchlog body, a long natural language description.
|
get_merged_patches(self)Deprecated. Revisions merged in this revision. That is the revisions listed in the New-patches header except the revision of the patchlog.
|
get_modified_files(self)Deprecated. Names of source files modified in the associated revision.
|
get_new_files(self)Deprecated. Source files added in the associated revision.
|
get_new_patches(self)Deprecated. New-patches header as an iterable of Revision.
|
get_removed_files(self)Deprecated. Names of source files removed in the associated revision.
|
get_renamed_files(self)Deprecated. Source files renames in the associated revision. Dictionnary whose keys are old names and whose values are the corresponding new names. Explicit file ids are listed in addition to their associated source file.
|
get_revision(self)Deprecated. Revision associated to this patchlog.
|
get_summary(self)Deprecated. Patchlog summary, a one-line natural language description.
|
items(self)List of 2-tuples containing all headers and values.
|
Property Details |
---|
continuationDeprecated. Ancestor of tag revisions. None for commit and import revisions. |
continuation_ofAncestor of tag revisions. None for commit and import revisions. |
creatorUser id of the the creator of the associated revision. |
dateTime of the associated revision. For the description of the local time tuple, see the documentation
of the |
descriptionPatchlog body, a long natural language description. |
merged_patchesRevisions merged in this revision. That is the revisions listed in the New-patches header except the revision of the patchlog. |
modified_filesNames of source files modified in the associated revision. |
new_filesSource files added in the associated revision. |
new_patchesNew-patches header as an iterable of Revision. Patchlogs added in this revision. |
removed_filesNames of source files removed in the associated revision. |
revisionRevision associated to this patchlog. |
summaryPatchlog summary, a one-line natural language description. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Fri Jul 7 17:05:35 2006 | http://epydoc.sf.net |