\x89\x50\x4E\x47\x0D\x0A\x1A\x0A PNG  \x89\x50\x4E\x47\x0D\x0A\x1A\x0A  13\c@@sddlmZddljZddlZddlZddlZddlZddl m Z ddl m Z m Z mZmZddlmZmZddlmZdejejfd YZdS( i(tabsolute_importN(t_(tencodingterrortpycompattutil(tdateutiltprocutili(tcommontgnuarch_sourcecB@seZdefdYZddZdZdZdZdZ dZ dZ d Z d Z d Zd Zd ZdZdZdZdZdZdZRS(t gnuarch_revcB@seZdZRS(cC@s^||_d|_d|_d|_d|_g|_g|_g|_i|_ i|_ dS(Nt( trevtsummarytNonetdatetauthortcontinuationoft add_filest mod_filest del_filest ren_filestren_dirs(tselfR ((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt__init__ s         (t__name__t __module__R(((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyR scC@s?tt|j|||d|tjjtjj|ds_tjt d|nd|_ t j drd|_ n0t j drd|_ ntjt dtjj|||j tjj||_d|_d|_d|_i|_i|_i|_tj|_tj|_g|_dS(Ntrevss{arch}s+%s does not look like a GNU Arch repositorytbazttlascannot find a GNU Arch tool(tsuperR RtostpathtexiststjoinRtNoRepoRRtexecmdRtfindexeRtAbortt commandlinetrealpathttmppatht treeversiontlastrevtchangestparentsttagst emailparsertParsert catlogparserRtarchives(RtuitrepotypeR R((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyR,s*"!           c C@sjg|jddD]}|jd^q|_|jdkrX|jd|j}n|jdd|j}|j|_|jjd}t jj t j d|d |_ g|jd<|j}d}x|re|jjtd ||jdd }||jkr6|jjtd |Pn|jd dd|\}}|j|d|d}x|D]}|j} |j| |j| tlR tcatlog((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pytbeforeKsN.       ! cC@s1|jjd|jtj|jdtdS(Nscleaning up %s t ignore_errors(R3tdebugR)tshutiltrmtreetTrue(R((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pytafterscC@s |jdS(N(R-R(R((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pytgetheadsscC@s_||jkr'tjtdntjjtjj|j|sOdS|j ||S(Nsinternal calling inconsistency(NN( R+RR&RRR tlexistsR"R)Rt_getfile(RtnameR ((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pytgetfiles $c C@s|rtjtdn|j|g}i}x+|j|jD]}|j||fqHWx+|j|jD]}|j||fqvWx+|j|jD]}|j||fqWx\|j|j D]J}|j|j |}|j||f|j||f|||s2>t s ( R$Rt shellquoteRtdevnullt quotecommandR"R3RMtsystemRtrapplyt tonativestr(Rtcmdtargstkwargstcmdlinetarg((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt_executes "cC@s|jjd||jdd|j|\}}|ratj|jdt|j|n;|j|d}|jjd||f|j ||dS(Nsapplying revision %s... treplays-dRLis)computing changeset between %s and %s... ( R3RMR?R)RNRORPt_obtainrevisionR-t_parsechangeset(RR t changesetR>told_rev((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRWs cC@stjtjj|j|j}tj|rltj tjj|j|}|rcd}qd}n7tj tjj|j|}|d@rdpd}||fS(NRIR iItx( RtlstatR R"R)tst_modetstattS_ISLNKRtreadlinktreadfile(RRUR tmodetdata((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRTs$!  !cC@s=dddg}x'|D]}|j|dkrtSqWtS(Ns{arch}s .arch-idss.arch-inventoryi(tfindRPtFalse(RRUtexcludetexc((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt_excludes  cC@sg}tj|}xt|dkr|j}tjj||}|j|stjj|r|gtj|D]}tjj||^q7}q|j|qqW|S(Ni( RtlistdirtlentpopR R"RtisdirRC(RR tfilestcontentstctpR^((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyt _readcontentss 8c C@sg}i}|jtjj|j|}x\|D]T}tjj||}tjj||}|j||j||||itMs=>Ris itchs/>( R:RRRR,RRCRRR;RRR( RRR RItfileRR_tdsttdirs((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyRx3sT    N(RRtobjectR RRRKRQRRRVRcRfRgRuRWRTRRRXRwRRBRx(((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyR s&  D           (t __future__Rt email.parsertparserR/RRNR~R<tmercurial.i18nRt mercurialRRRRtmercurial.utilsRRR Rtconverter_sourceR'R (((s;/usr/lib64/python2.7/site-packages/hgext/convert/gnuarch.pyts    "