Logo Search packages:      
Sourcecode: tailor version File versions  Download package

vcpx::statefile::StateFile Class Reference

List of all members.


Detailed Description

State file that stores current revision and pending changesets.

It behaves as an iterator, and source backends loop over not yet
applied changesets, calling .applied() after each one: that writes
the applied changeset in a *journal* file, much more atomic than
rewriting the whole archive each time.

When the source backend finishes it's job, either because there
are no more pending changeset or stopped by an error, it calls
.finalize(), that in presence of a journal file adjust the
archive filtering out already applied changesets.

Should an hard error prevent .finalize() call, it will happen
automatically next time the state file is loaded.

Definition at line 24 of file statefile.py.


Public Member Functions

def __init__
def __iter__
def __str__
def applied
def finalize
def lastAppliedChangeset
def next
def pending
def reversed
def setPendingChangesets

Public Attributes

 archive
 current
 filename
 last_applied
 log

Private Member Functions

def _load
def _write

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index