³ò ø$•Jc@slddkZddklZlZddklZddkZdd„Zd„Z d„Z dd„Z dS( iÿÿÿÿN(tnullrevtshort(t_c Cs|i||d|ƒ}|idƒ}tii|ƒpti|ƒntii|dt|ƒ|fƒ}|iit dƒ|ƒt i ||dƒS(s8create a bundle with the specified revisions as a backuptstrips strip-backups%s-%sssaving bundle to %s tHG10BZ( tchangegroupsubsettjointostpathtisdirtmkdirRtuitwarnRt changegroupt writebundle( trepotbasestheadstnodetsuffixt extranodestcgt backupdirtname((s#/sys/lib/python/mercurial/repair.pyt_bundles%cCsJtƒ}x4t|t|ƒƒD]}|i||iƒƒqWt|ƒS(s+find out the filelogs affected by the strip(tsettxrangetlentupdatetfilestsorted(RtstriprevRtx((s#/sys/lib/python/mercurial/repair.pyt _collectfiless  csŠ‡‡fd†}h}|i‰||iƒ}|o||d|D]6}|i|ƒ}||ƒ}|o||| s   #