-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
¦îNc @@ s¾ d d l m Z d d l m Z e e ƒ d ƒ d d l m Z m Z d d l m Z d Z
d Z d e f d „ ƒ YZ
e d
„ Z d „ Z d „ Z d
„ Z d „ Z d „ Z d „ Z d S( i ( t absolute_import( t lazy_imports
from bzrlib import bugtracker
( t errorst symbol_versioning( t contains_whitespaces null:s current:t Revisionc B@ sb e Z d Z d
d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z RS( s Single revision on a branch.
Revisions may know their revision_hash, but only once they've been
written out. This is not stored because you cannot write the hash
into the file it describes.
After bzr 0.0.5 revisions are allowed to have multiple parents.
parent_ids
List of parent revision_ids
properties
Dictionary of revision properties. These are attached to the
revision as extra metadata. The name must be a single
word; the value can be an arbitrary string.
c K@ sc | | _ | d k r! i | _ n | | _ | j ƒ d | _ g | _ g | _ | j j | ƒ d S( N( t revision_idt Nonet
propertiest _check_propertiest committert
parent_idst parent_sha1st __dict__t update( t selfR R t args( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/revision.pyt __init__7 s
c C@ s d | j S( Ns <Revision id %s>( R ( R ( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/revision.pyt __repr__D s c C@ s¡ t | t ƒ s t S| j | j k o | j | j k o | j | j k o | j | j k o | j | j k o | j | j k o | j | j k o | j
| j
k S( N( t
isinstanceR t Falset inventory_sha1R t timestampt messaget timezoneR
R R ( R t other( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/revision.pyt __eq__G s c C@ s | j | ƒ S( N( R ( R R ( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/revision.pyt __ne__T s c C@ s{ xt | j j ƒ D]c \ } } t | t ƒ s8 t | ƒ rK t d | ƒ ‚ n t | t ƒ s t d | | f ƒ ‚ q q Wd S( s+ Verify that all revision properties are OK.s invalid property name %rs invalid property value %r for %rN( R t iteritemsR t
basestringR t
ValueError( R t namet value( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/revision.pyR W s c C@ s~ | } g } xa | d k ro | j | j ƒ t | j ƒ sP | j d ƒ d } q | j d } | j | ƒ } q W| j ƒ | S( sŸ Return the canonical line-of-history for this revision.
If ghosts are present this may differ in result from a ghost-free
repository.
i N( R t appendR t lenR t get_revisiont reverse( R t
repositoryt current_revisiont reversed_resultt next_revision_id( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/revision.pyt get_history` s
c C@ s. | j r&