³ò ÷$•Jc@sKddklZddklZddkZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk Z d„Z defd„ƒYZdefd„ƒYZd efd „ƒYZd efd „ƒYZhed <ed<d„d<d„d<d„d<ed|_ |ii ||ƒdS(Niiÿl( R[tZipInfoRR`RAt compressiont compress_typet create_systemtstattS_IFREGtS_IFLNKt external_attrtwritestr(R"R%R=RJRKRLtftype((s%/sys/lib/python/mercurial/archival.pyRIs   cCs|iiƒdS(N(RARM(R"((s%/sys/lib/python/mercurial/archival.pyRNœs(R2R3ROtTrueR!RIRN(((s%/sys/lib/python/mercurial/archival.pyRWs tfileitcBs)eZdZd„Zd„Zd„ZRS(s$write archive as files in directory.cCsB|otitdƒƒ‚n||_ti|iƒ|_dS(Ns*cannot give prefix when archiving to files(RRRtbasedirtopener(R"R%RR@((s%/sys/lib/python/mercurial/archival.pyR!¢s cCs}|o|ii||ƒdSn|i|ddtƒ}|i|ƒ|iƒtii|i|ƒ}ti ||ƒdS(NRXt atomictemp( RotsymlinkRlR(trenameRR tjoinRntchmod(R"R%R=RJRKtftdestfile((s%/sys/lib/python/mercurial/archival.pyRI¨s  cCsdS(N((R"((s%/sys/lib/python/mercurial/archival.pyRN²s(R2R3ROR!RIRN(((s%/sys/lib/python/mercurial/archival.pyRmŸs  tfilesttarcCst|||dƒS(tbz2(R(R%RR@((s%/sys/lib/python/mercurial/archival.pyt¸sttbz2cCst|||dƒS(R5(R(R%RR@((s%/sys/lib/python/mercurial/archival.pyRz¹sttgzcCst|||tƒS((RWtFalse(R%RR@((s%/sys/lib/python/mercurial/archival.pyRzºstuziptzipc s‡‡‡‡fd†}|tjotitdƒ|ƒ‚nˆˆ} t||||p| iƒdƒ‰ˆiiddtƒo#|ddt‡‡fd†ƒnxQ| D]I} | i | ƒ} || d | jod pdd | j| | i ƒq¶Wˆi ƒd S( s‡create archive of repo as it was at node. dest can be name of directory, name of archive file, or file object to write archive to. kind is type of archive to create. decode tells whether to put files through decode filters from hgrc. matchfn is function to filter names of files to write to archive. prefix is name of path to put before every archive member.cs]ˆoˆ|ƒ odSn|ƒ}ˆoˆi||ƒ}nˆi||||ƒdS(N(t wwritedataRI(R%R=RJtgetdataRK(trepotmatchfntdecodetarchiver(s%/sys/lib/python/mercurial/archival.pyR(Îs  sunknown archive type '%s'ituit archivemetas.hg_archival.txti¤cs&dtˆiidƒƒtˆƒfS(srepo: %s node: %s i(Rt changelogtnode((R‚R‰(s%/sys/lib/python/mercurial/archival.pyRzÝstxiítlN( t archiversRRRtdateR†t configboolRlR}R0RKRN( R‚RR‰R?R„RƒRR@R(tctxRutff((R‰R„RƒR‚R…s%/sys/lib/python/mercurial/archival.pytarchive¾s  ' 8(ti18nRR‰RRRGRRfR:RR[R8RRtobjectRRPRWRmRŒRlRR‘(((s%/sys/lib/python/mercurial/archival.pyss$ H H