-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
î:ïNc @@ sV d Z d d l m Z d d l m Z d e f d „ ƒ YZ d e f d „ ƒ YZ d S( s$ This module provides an IdentityMap.i ( t absolute_import( t errorst IdentityMapc B@ s; e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s An in memory map from object id to instance.
An IdentityMap maps from keys to single instances of objects in memory.
We have explicit calls on the map for the root of each inheritance tree
that is store in the map. Look for find_CLASS and add_CLASS methods.
c C@ s^ | j | ƒ | j k r. t j d | ƒ ‚ n | | j | j | ƒ <| j | ƒ | j | <d S( s% Add weave to the map with a given id.s$ weave %s already in the identity mapN( t
_weave_keyt _mapR t BzrErrort _reverse_map( t selft idt weave( ( s6 /usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyt add_weave# s c C@ s | j j | j | ƒ d ƒ S( s8 Return the weave for 'id', or None if it is not present.N( R t getR t None( R R ( ( s6 /usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyt
find_weave* s c C@ s) t t | ƒ j ƒ i | _ i | _ d S( N( t superR t __init__R R ( R ( ( s6 /usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyR . s c C@ sM t | t ƒ r"