Server : Apache System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : andertr9 ( 1047) PHP Version : 8.2.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/mercurial/ |
Upload File : |
� Hq�Qc @ s� d d l m Z d d l m Z d d l m Z m Z m Z m Z d d l Z d d l Z d e f d � � YZ d � Z d � Z d � Z d d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d S( i����( t _( t hex( t encodingt errort utilt obsoleteNt bmstorec B s e Z d Z d � Z d � Z RS( s� Storage for bookmarks. This object should do all bookmark reads and writes, so that it's fairly simple to replace the storage underlying bookmarks without having to clone the logic surrounding bookmarks. This particular bmstore implementation stores bookmarks as {hash}\s{name} (the same format as localtags) in .hg/bookmarks. The mapping is stored as {name: nodeid}. This class does NOT handle the "current" bookmark state at this time. c C s� t j | � | | _ y� x� | j d � D]� } | j � } | sG q) n d | k rs | j j t d � | � q) n | j d d � \ } } t j | � } y | j j | � | | <Wq) t k r� q) Xq) WWn+ t k r� } | j t j k r� � q� n Xd S( Nt bookmarkst s$ malformed line in .hg/bookmarks: %r i ( t dictt __init__t _repot vfst stript uit warnR t splitR t tolocalt changelogt lookupt LookupErrort IOErrort errnot ENOENT( t selft repot linet shat refspect inst( ( s9 /usr/lib64/python2.7/site-packages/mercurial/bookmarks.pyR s( c C s� | j } | j | k r( t | d � n | j � } z� | j d d d t �} x@ | j � D]2 \ } } | j d t | � t j | � f � q\ W| j � y t j | j d � d � Wn t k r� n XWd | j � Xd S( s Write bookmarks Write the given bookmark => hash dictionary to the .hg/bookmarks file in a format equal to those of localtags. We also store a backup of the previous state in undo.bookmarks that can be copied back on rollback. R t wt atomictemps %s %s s 00changelog.iN( R t _bookmarkcurrentt setcurrentt Nonet wlockR t Truet iteritemst writeR R t fromlocalt closet ost utimet sjoint OSErrort release( R R R# t filet namet node( ( s9 /usr/lib64/python2.7/site-packages/mercurial/bookmarks.pyR&