o ö]Lb¬ã@sšddlmZddlmZmZmZmZdd„Zdd„efejej fej ej fej ej fdœZd d „Zd d „Zd d„Zdd„ZejZejZdd„Zdd„ZdS)é)Úabsolute_importé)Ú bookmarksÚencodingÚobsoleteÚphasescCs2i}tD]}d||<qt |tj¡s| d¡|S)Nóóobsolete)Ú _namespacesrÚ isenabledÚ exchangeoptÚpop)ÚrepoÚnÚk©rú3/usr/lib/python3/dist-packages/mercurial/pushkey.pyÚ_nslists   rcGódS©NFr©ÚxrrrÚór)s namespacess bookmarkssphasesr cCs||ft|<dS©N)r )Ú namespaceÚpushkeyÚlistkeysrrrÚregister#srcCst |dd„dd„f¡S)NcWrrrrrrrr(rz_get..cWsiSrrrrrrr(r)r Úget)rrrrÚ_get'sr cCst|ƒd}|||||ƒS)z should succeed iff value was oldr©r )rrÚkeyÚoldÚnewÚpkrrrÚpush+s r&cCst|ƒd}||ƒS)z return a dictrr!)rrÚlkrrrÚlist1s r(cCsd dd„|Dƒ¡S)zDencode the content of a pushkey namespace for exchange over the wireó cSs$g|]\}}dt|ƒt|ƒf‘qS)s%s %s)Úencode)Ú.0rÚvrrrÚ >s$zencodekeys..)Újoin)ÚkeysrrrÚ encodekeys<sr0cCs4i}| ¡D]}| d¡\}}t|ƒ|t|ƒ<q|S)zEdecode the content of a pushkey namespace from exchange over the wireó )Ú splitlinesÚsplitÚdecode)ÚdataÚresultÚlrr,rrrÚ decodekeysAs  r8N)Ú __future__rÚrrrrrÚ pushbookmarkÚ listbookmarksÚ pushphaseÚ listphasesÚ pushmarkerÚ listmarkersr rr r&r(Ú fromlocalr*Útolocalr4r0r8rrrrÚs    ü