§
    cÌcÛ  ã                   ó   — d Z ddlZd„ Zd„ ZdS )z0Routines for saving and loading the id-map file.é    Nc                 ó¤   — t          | d¦  «        5 }|D ]"}|                     d|||         fz  ¦  «         Œ#	 ddd¦  «         dS # 1 swxY w Y   dS )a  Save the mapping of commit ids to revision ids to a file.

    Throws the usual exceptions if the file cannot be opened,
    written to or closed.

    :param filename: name of the file to save the data to
    :param revision_ids: a dictionary of commit ids to revision ids.
    Úwbs   %s %s
N)ÚopenÚwrite)ÚfilenameÚrevision_idsÚfÚ	commit_ids       úE/usr/lib/python3/dist-packages/breezy/plugins/fastimport/idmapfile.pyÚsave_id_mapr      sÃ   € õ 
ˆh˜Ñ	Ô	ð G Ø%ð 	Gð 	GˆIØ�GŠG�J )¨\¸)Ô-DÐ!EÑEÑFÔFÐFÐFð	GðGð Gð Gñ Gô Gð Gð Gð Gð Gð Gð Gð Gøøøð Gð Gð Gð Gð Gð Gs   ‘&AÁA	ÁA	c                 ó  — i }d}t           j                             | ¦  «        rat          | ¦  «        5 }|D ]6}|dd…                              dd¦  «        }|d         ||d         <   |dz  }Œ7	 ddd¦  «         n# 1 swxY w Y   ||fS )aæ  Load the mapping of commit ids to revision ids from a file.

    If the file does not exist, an empty result is returned.
    If the file does exists but cannot be opened, read or closed,
    the normal exceptions are thrown.

    NOTE: It is assumed that commit-ids do not have embedded spaces.

    :param filename: name of the file to save the data to
    :result: map, count where:
      map = a dictionary of commit ids to revision ids;
      count = the number of keys in map
    r   Néÿÿÿÿú é   )ÚosÚpathÚexistsr   Úsplit)r   ÚresultÚcountr	   ÚlineÚpartss         r   Úload_id_mapr   #   sÚ   € ð €FØ€EÝ	„w‡~‚~�hÑÔð Ý�(‰^Œ^ð 	˜qØð ð �Ø˜S˜b˜Sœ	Ÿš¨¨QÑ/Ô/�Ø#(¨¤8��u˜Q”xÑ Ø˜‘
��ðð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð
 �5ˆ=Ðs   ³:A:Á:A>ÂA>)Ú__doc__r   r   r   © ó    r   ú<module>r      sA   ðð  7Ð 6à 	€	€	€	ðGð Gð Gðð ð ð ð r   