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

Class FileLog



object --+
         |
        FileLog

A utility class for storing the results of a 'p4 filelog' command.

A filelog consists of a list of FileRevision objects, one for each revision of a particular depot file.


See Also: FileRevision, Integration

Instance Methods
 
__init__(self, depotFile, revisions)
Construct a FileLog object.

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

Static Methods
 
parseRecord(record)
Construct a populated FileLog object from a 'p4 filelog' record.
Instance Variables
str or unicode depotFile
The path of the file in the repository.
list of FileRevision objects. revisions
A list of FileRevision objects for this depotFile.
Properties

Inherited from object: __class__

Method Details

__init__(self, depotFile, revisions)
(Constructor)

 
Construct a FileLog object.
Overrides: object.__init__

parseRecord(record)
Static Method

 

Construct a populated FileLog object from a 'p4 filelog' record.

Example:
 | from perforce.connection import Connection
 | from perforce.results import FileLog
 | c = Connection()
 | c.connect()
 | results = c.run('filelog', '//depot/some/file.txt')
 | fileLog = FileLog.parseRecord(results.records[0])
Parameters: