mò óRÅDc@sRdZdklZdkTeeƒdƒd„Zd„Zd„Zd„Z dS( sö changegroup.py - Mercurial changegroup manipulation functions Copyright 2006 Matt Mackall This software may be used and distributed according to the terms of the GNU General Public License, incorporated herein by reference. (sgettext(t*s struct utilcCs¤|idƒ}|pdSntid|ƒd}|djodSn|i|dƒ}t|ƒ|djo-tit dƒt|ƒ|dfƒ‚n|S(sget a chunk from a changegroupits>lis7premature EOF reading chunk (got %d bytes, expected %d)N( tsourcetreadtdtstructtunpacktltlentutiltAbortt_(RRR((t9/usr/lib/python2.4/site-packages/mercurial/changegroup.pytgetchunk s -ccs(x!t|ƒ}|pPn|VqWdS(s$iterate through the chunks in sourceiN(R Rtc(RR((R t chunkiters cCs*tidt|ƒdƒ}d||fS(sbuild a changegroup chunks>lis%s%sN(RtpackRtdatatheader(RR((R tgenchunk$scCstiddƒS(Ns>li(RR(((R t closechunk)sN( t__doc__ti18ntgettextR t demandloadtglobalsR RRR(R RRRR ((R t?s