-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
Ì\,Tc @ s
d d l m Z d d l m Z m Z d d l m Z m Z m Z m 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 d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d S( iÿÿÿÿ( t _( t hext bin( 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( ( s7 /usr/lib/python2.7/dist-packages/mercurial/bookmarks.pyR s(
c C s× | j } | j | k r% t | ƒ n | j ƒ } z” | j d d d t ƒ} x@ | j ƒ D]2 \ } } | j d t | ƒ t j
| ƒ f ƒ qY W| j ƒ y | 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 unsetcurrentt wlockR
t Truet iteritemst writeR R t fromlocalt closet svfst utimet Nonet OSErrort release( R R R# t filet namet node( ( s7 /usr/lib/python2.7/dist-packages/mercurial/bookmarks.pyR&