Package perforce :: Module results :: Class FileRevision
[frames] | no frames]

Class FileRevision



object --+
         |
        FileRevision

Information about a single revision of a file.

The file revision contains information about the change for that revision as well as a list of Integration records that provide information about the integrations that the file revision was involved in.


See Also: FileLog, Integration

Instance Methods
 
__init__(self, rev, change, action, type, user, client, desc, time, integrations)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables
str or unicode action
The action performed on the file in this revision.
int change
The change number that this file revision belongs to.
str or unicode client
The name of the client the change for this file revision was submitted from.
str or unicode desc
The description of the change this file revision belongs to.
int rev
The revision of this file.
int time
The time of this change as a POSIX timestamp.
str or unicode type
The Perforce file type of the file in this revision.
str or unicode user
The username of the user who submitted the change for this file revision.
Properties
  integrations

Inherited from object: __class__

Method Details

__init__(self, rev, change, action, type, user, client, desc, time, integrations)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

Instance Variable Details

action

The action performed on the file in this revision. ie. 'add', 'edit', 'delete', 'integrate', 'branch' or 'import'

time

The time of this change as a POSIX timestamp. ie. The nubmer of seconds since 1970/01/01 00:00 UTC. This can be converted to local time by constructing a datetime.datetime object using datetime.fromtimestamp().

type

The Perforce file type of the file in this revision. eg 'text', 'text+kmx', 'binary', 'unicode'