Ë }6„œï.Êãó—dZddlmZddlmcmZddlmcm Z ddl m Z ddlZddlZddlmZddlmZddlmZddlmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ddl%m&Z&m'Z'e$jPZ(iZ)e!jTe)«Z*iZ+e!jXe+«Z,e,dd d¬ «e,dd d¬ «e,dd d¬ «e,dd d¬ «e,ddd¬ «e,ddd¬ «e,ddd¬ «e,ddd¬ «e,ddd¬ «e,ddd¬ «dZ-d„Z.d„Z/d„Z0drd„Z1d„Z2d„Z3d„Z4 dsd„Z5d„Z6d „Z7d!„Z8d"„Z9d#„Z:dsd$„Z;d%„Zdd'ed?«ed1«fd@dAdedB«fdCdDd'edE«ed=«fd'dgedF«ed1«fdGdHd'edI«edJ«fd'dKd'edL«edM«fd'dNgedO«edP«fdQdgedR«ed1«fgZ>e*dSdTdUdedV«fd'dWdedX«fdYdZded[«fd\d]ded^«fd_d`d'eda«edb«fd'dcd]edd«ede«fdfdggedh«edi«fd'djdedk«fd'dlgedm«edi«fd'ddedn«fg e>zej~zedo«e*j€¬p«dq„«ZAy)tas command to send changesets as (a series of) patch emails The series is started off with a "[PATCH 0 of N]" introduction, which describes the series as a whole. Each patch email has a Subject line of "[PATCH M of N] ...", using the first line of the changeset description as the subject text. The message contains two or three body parts: - The changeset description. - [Optional] The result of running diffstat on the patch. - The patch itself, as generated by :hg:`export`. Each message refers to the first in the series using the In-Reply-To and References headers, so they will show up as a sequence in threaded mail and news readers, and in mail archives. To configure other defaults, add a section like this to your configuration file:: [email] from = My Name to = recipient1, recipient2, ... cc = cc1, cc2, ... bcc = bcc1, bcc2, ... reply-to = address1, address2, ... Use ``[patchbomb]`` as configuration section name if you need to override global ``[email]`` address settings. Then you can use the :hg:`email` command to mail a series of changesets as a patchbomb. You can also either configure the method option in the email section to be a sendmail compatible mailer or fill out the [smtp] section so that the patchbomb extension can automatically send patchbombs directly from the commandline. See the [email] and [smtp] sections in hgrc(5) for details. By default, :hg:`email` will prompt for a ``To`` or ``CC`` header if you do not supply one via configuration or the command line. You can override this to never prompt by configuring an empty value:: [email] cc = You can control the default inclusion of an introduction message with the ``patchbomb.intro`` configuration option. The configuration is always overwritten by command line flags like --intro and --desc:: [patchbomb] intro=auto # include introduction message if more than 1 patch (default) intro=never # never include an introduction message intro=always # always include an introduction message You can specify a template for flags to be added in subject prefixes. Flags specified by --flag option are exported as ``{flags}`` keyword:: [patchbomb] flagtemplate = "{separate(' ', ifeq(branch, 'default', '', branch|upper), flags)}" You can set patchbomb to always ask for confirmation by setting ``patchbomb.confirm`` to true. éN)Ú_)Úopen)Úbin)ÚcmdutilÚcommandsÚencodingÚerrorÚ formatterÚhgÚ logcmdutilÚmailÚpatchÚpycompatÚ registrarÚscmutilÚ templaterÚutil)ÚdateutilÚurlutiló patchbombó bundletype©ÚdefaultsbccsccóconfirmFó flagtemplateófromóintroóautoó publicurlsreply-tostosships-with-hg-corecóp—|j«}|jjdd«}|rd|||fzSy)zFAdd a header pointing to a public URL where the changeset is availablerrs/Available At %s # hg pull %s -r %sN)ÚrepoÚuiÚconfig)ÚseqÚctxr!Ú publicurls ú3usr/lib/python3.12/site-packages/hgext/patchbomb.pyÚ_addpullheaderr(¬sG€à �8‰8‹:€Dð—‘—‘˜|¨\Ó:€IÙØBØ Ø Ø ðF ñ ð ð ócóp—tjjd«ttjd<y)Nspullurl)rÚ extraexportÚappendr(Úextraexportmap)r"s r'Úuisetupr.¼s&€Ü ×Ñ×јzÔ*Ü)7„G×ј:Ò&r)có\—|j«sy|jjd«y)Nólast-email.txt)ÚlocalÚ_wlockfreeprefixÚadd)r"r!s r'Ú reposetupr4Ás#€Ø �:‰:Œ<ØØ×Ñ×ÑÐ/Õ0r)có@—|r|d|zz }|j||z|«S)Ns [%s])Úprompt)r"r6rÚrests r'r6r6Çs)€ÙØ�(˜WÑ$Ñ$ˆØ �9‰9�V˜d‘] GÓ ,Ð,r)có*—|jdd«}|jd«s|jd«rd}|S|dk(rd}|S|dk(rd}|S|dk(r|d kD}|S|jtd «|z«|jtd ««|d kD}|S) z-is an introductory message apparently wanted?rródescTsalwayssneverFrés,warning: invalid patchbomb.intro value "%s" s'(should be one of always, never, auto) )r#ÚgetÚ write_errr)r"ÚoptsÚnumberÚ introconfigÚintros r'Ú introwantedrAÍs¹€à—)‘)˜L¨(Ó3€KØ ‡x�x�Ô˜TŸX™X gÔ.؈ð €Lð ˜ Ò !؈ð €Lð ˜Ò ؈ð €Lð ˜Ò ؘ‘ ˆð €Lð � ‰ Ü Ð>Ó ?À+Ñ Mô ð � ‰ ”QÐBÓCÔDؘ‘ ˆØ €Lr)c óð—|jdd«}|sdj|«Stj«}t j t j|««}t j||di|«5}|j«|j||¬«|jdd|j|d¬ ««d d d «|j«S#1swY|j«SxYw) z(build flag string optionally by templaterró s patchbombflag)r%sflagss%sóflag)ÚnameN)r#ÚjoinrÚstringior Úliteral_templatespecrÚ unquotestringÚtemplateformatterÚ startitemÚcontextÚwriteÚ formatlistÚgetvalue)r"r!ÚrevÚflagsÚtmplÚoutÚspecÚfms r'Ú _formatflagsrVásÄ€à �9‰9�\ ?Ó 3€DÙ Ø�y‰y˜ÓÐÜ �-‰-‹/€CÜ × )Ñ )¬)×*AÑ*AÀ$Ó*GÓ H€DÜ × $Ñ $ R¨Ð.>ÀÀDÔ IÈRØ � ‰ ŒØ � ‰ �t˜C‘yˆ Ô!Ø �‰�˜5 "§-¡-°¸G -Ó"DÔE÷ Jð �<‰<‹>Ð÷ Jð �<‰<‹>Ðús Á;A CÃC5cóh—t||||«}|rd|z}|sd|zStd|z«}d||||fzS)zbuild prefix to patch subjectrCs [PATCH%s]ó%ds[PATCH %0*d of %d%s])rVÚlen) r"r!rPrQÚidxÚtotalÚnumberedÚflagÚtlens r'Ú _formatprefixr_ïsN€ä ˜˜D # uÓ -€DÙ Ø�d‰{ˆá ؘdÑ"Ð"ä�5˜5‘=Ó!ˆØ&¨$°°U¸DÐ)AÑAÐAr)c ó€—g} d} d} |D]m} | jd«r%| jd«r| j«d} Œ9| jd«s| jd«rn| j| «Œo| s| st‚|j d«r<|j d«s+d j | d d«j «xsd } | d z } |j d «r�|r<|djd«r(|jd«|r|djd«rŒ(|r|jd«|r:|dj «s'|jd«|r|dj «sŒ'tj|«}|j d«r| |dzz } |j d«xs|j d«}|r|j d«r| d j |«z } |�rVtj«}| r6|jtj|| ||j d«««tjd j |«d|j d««}t!| «}| sƒ|j#|«D�cgc]&}|j%d«s|j%d«r|‘Œ(}}|r|d} n;|d kDrt'j(|| d||¬«} nt'j(|| d«} d}|j d«rd}|dzt+j,| «z|d<|j|«n&tj| |j d«¬«}t/||||j d«|||«}| dj «j1d «}|s'd!j ||j d"«xs|g«}nd!j ||g«}tj2||||j d««|d#<t5j6| «|d$<d%|z|d&<d%|z|d'<|||fScc}w)(Nr)ó#s # Node IDéÿÿÿÿsdiff -rs diff --gitóattachóbodyó r:s"Patch subject is complete summary.s óplainrs# ódiffstats óinlineótestzx-patchs.patchs.diffs %b-%n.patch)Úseqnor[s%b.patchÚinlineÚ attachmentz ; filename=úContent-Disposition)ÚdisplayrDs. rCósubjectÚSubjectúX-Mercurial-Nodez%izX-Mercurial-Series-IndexzX-Mercurial-Series-Total)Ú startswithÚsplitr,Ú ValueErrorr;rFÚstripÚpoprÚdiffstatÚemimemultipartÚ MIMEMultipartÚattachr Ú mimeencodeÚ mimetextpatchrÚnodetagsÚendswithrÚ makefilenamerÚ strfromlocalr_ÚrstripÚ headencoderÚsysstr)r"r!rPÚ patchlinesr=Ú _charsetsrZr[r\Ú patchnameÚdescÚnodeÚbodyÚlineÚdsÚ addattachmentÚmsgÚpÚbinnodeÚtÚ patchtagsÚ dispositionÚprefixÚsubjs r'Ú makepatchr•üså€ð €DØ €DØ €DãˆØ �?‰?˜4Ô Ø�‰˜|Ô,Ø—z‘z“| BÑ'�Ø Ø �?‰?˜:Ô &¨$¯/©/¸-Ô*HÙ Ø � ‰ �DÕðñ ™TÜÐà ‡x�x� Ô 4§8¡8¨GÔ#4à �J‰J�t˜A˜B�xÓ × &Ñ &Ó (ò 5Ø4ð ð � Ñˆà ‡x�x�ÔÙ˜Z¨™]×5Ñ5°eÔ<Ø �N‰N˜1Ô ñ˜Z¨™]×5Ñ5°eÕ<á Ø �N‰N˜1Ô Ù ¨A¡×!4Ñ!4Ô!6Ø �N‰N˜1Ô ñ ¨A¡×!4Ñ!4Õ!6ô �‰˜ Ó #€BØ ‡x�x� ÔØ ��W‘ шà—H‘H˜YÓ'Ò>¨4¯8©8°IÓ+>€MÙ ˜DŸH™H WÔ-Ø �— ‘ ˜:Ó&Ñ&ˆâÜ×*Ñ*Ó,ˆÙ Ø �J‰J”t—‘ r¨4°¸D¿H¹HÀWÓ¸$Ð?Ó@‰à�y‰y˜& $˜Ó(ˆÜ—_‘_ R¨¨y¸$¿(¹(À7Ó:KÓL€Cˆ �NÜ&Ÿo™o¨dÓ3€CÐÑØ&*¨S¡j€CÐ"Ñ#Ø&*¨U¡l€CÐ"Ñ#Ø ��bˆ=ÐùòGsÊ +P;c +ó¾K—|j}|dj«}|D]µ}||k(r@|dj«s|dj«r|j t d««t «}tj||g|tj|tj|«d¬«¬«|j«jd«–—Œ·y­w)zlreturn a list of patches for a list of revisions Each patch in the list is itself a list of lines. ó.Ns3warning: working directory has uncommitted changes T)Úgit)r=re)r"rPÚfilesÚdeletedÚwarnrrGrÚ exportfilerÚdifffeatureoptsrÚ byteskwargsrOrs)r!Úrevsr=r"ÚprevÚrÚoutputs r'Ú _getpatchesr£`s¼èø€ð �‰€BØ �‰:�>‰>Ó €DÛ ˆØ �Š9˜$˜t™*×*Ñ*Ô,°°T± ×0BÑ0BÔ0DØ �G‰G”AÐMÓNÔ OÜ“ˆÜ×ÑØ Ø ˆCØ Ü×&Ñ&Ø”H×(Ñ(¨Ó.°Dôõ  ð�o‰oÓ×%Ñ% eÓ,Ó,ñùs‚CCc ó—|j}tjd¬«}tjj |d«}|j dd«}|r||d< g}|r|g}tj|||g|¢­i|¤Žtj|« tj|«tj|«S#t$rYŒ!wxYw# tj|«n#t$rYnwxYwtj|«wxYw)zÝreturn a bundle containing changesets missing in "dest" The `opts` keyword-arguments are the same as the one accepted by the `bundle` command. The bundle is a returned as a single in-memory binary blob. shg-email-bundle-)r“óbundlerrÚtype)r"rÚmkdtempÚosÚpathrFr#rÚbundlerÚreadfileÚunlinkÚOSErrorÚrmdir)r!Údestr=r"ÚtmpdirÚtmpfnÚbtypeÚdestss r'Ú _getbundler´vsë€ð �‰€BÜ × Ñ Ð%8Ô 9€FÜ �G‰G�L‰L˜ Ó +€EØ �I‰I�l MÓ 2€E٠؈ˆV‰ ð ØˆÙ Ø�FˆEÜ�‰˜˜D %Ð8¨%Ò8°4Ò8Ü�}‰}˜UÓ#ð Ü �I‰I�eÔ ô �‰�Õøôò Ù ð ûð Ü �I‰I�eÕ øÜò Ù ð úä �‰�ÕúsBÁ6CÂB?Â? C à C ÃD ÃC&Ã%D Ã& C2Ã/D Ã1C2Ã2D c ól—|j}|jd«r*t|jd««j«}|S|j t d««|j |||jd¬«}|jdd«}|j |«|j«|S)zõobtain the body of the introduction message and return it This is also used for the body of email with an attached bundle. The body can be obtained either from the command line option or entered by the user through the editor. r‡s7 Write the introductory message for the patch series. s patchbombbody)ÚrepopathÚactionr0swb) r"r;rÚreadrMrÚeditr©ÚvfsÚclose)r!Ú defaultbodyÚsenderr=r"r‰Úmsgfiles r'Ú_getdescriptionr¿’s£€ð �‰€BØ ‡x�x�ÔÜ�D—H‘H˜VÓ$Ó%×*Ñ*Ó,ˆð €Kð �‰Ü ÐKÓ Lô ð�w‰wØ ˜¨$¯)©)Б>¤# g¨rÓ"2Ó3ˆØ�xщàˆä ˜4  vÑ 6°Ñ 6€DÜ �/‰/˜"˜d I¨t¯x©x¸Ó/?Ó @€CÜ—_‘_ R¨¨y¸$¿(¹(À6Ó:JÓK€Cˆ �NØ ��xÐ Ð r)c óx—tj|«}|j}tj|«}t t ||fi|¤Ž«}g} |jtd«t|«z«t||t|««r"t||||fi|¤Ž} | r| j| «t| «t|«zdkD} d} t|«t|«k(sJ‚tt||««D]@\} \}}|r|| } t||||||| dzt|«| | « } | j| «ŒB| S)zÀreturn a list of emails from a list of patches This involves introduction message creation if necessary. This function returns a list of "email" tuples (subject, content, None). s+this patch series consists of %d patches. r:N)rržr"r r…Úlistr£rMrrYrArÒr,Ú enumerateÚzipr•)r!r½rŸÚ patchnamesr=Ú bytesoptsr"r…rÑÚmsgsr�r\rEÚir¡rŽs r'Ú _getpatchmsgsrÛês<€ô×$Ñ$ TÓ*€IØ �‰€BÜ—‘˜rÓ"€IÜ”;˜t TÑ2¨TÑ2Ó3€GØ €Dà‡H�HŒQÐ?Ó @Ä3ÀwÃ<Ñ OÔPô�2�y¤# g£,Ô/ܘ˜v t¨WÑ=¸Ñ=ˆÙ Ø �K‰K˜Ô ô�4‹yœ3˜w›<Ñ'¨!Ñ+€Hð €DÜ ˆt‹9œ˜G› Ò $Ð$Ð $Üœs 4¨Ó1Ö2‰ ˆ‰6ˆAˆq٠ؘa‘=ˆDÜØ Ø Ø Ø Ø Ø Ø �‰EÜ �‹LØ Ø ó  ˆð � ‰ �CÕð3ð" €Kr)cóä—|j}tj|||r|gnd«}|D�cgc]!}tj|j«‘Œ#}}|j t d«dj|«z«|D�cgc] }|dk\sŒ |‘Œ }}|s|jj«g}|jd|xsd|«}|s|j t d««|Scc}wcc}w)z4Return the revisions present locally but not in destNscomparing with %s ó,rsoutgoing(%s) and ::%ldr)sno changes found ) r"rÚget_push_pathsÚ hidepasswordÚrawlocÚstatusrrFÚ changelogÚtiprevrŸ)r!r¯rŸr"ÚpathsrŽÚ safe_pathsr¡s r'Ú _getoutgoingræsÖ€à �‰€BÜ × "Ñ " 4¨±t¨d©VÀÓ F€EÙ:?Ó@¹%°Q”'×&Ñ& q§x¡xÕ0¸%€JÐ@؇I�IŒaÐ&Ó'¨$¯)©)°JÓ*?Ñ?Ô@áÓ &‘t�!˜q A›vŠA�t€DÐ &Ù Ø—‘×%Ñ%Ó'Ð(ˆØ �9‰9Ð.°² ¸¸TÓ B€DÙ Ø � ‰ ”!Ð)Ó*Ô+Ø €KùòAùò 's­&C( C-ÂC-có¦— tjtjd«}d|||fzS#t$rt j «}YŒ'wxYw)Ns HGHOSTNAMEz <%s.%d@%s>)rr€ÚenvironÚKeyErrorÚsocketÚgetfqdn)rˆÚ timestampÚhostnames r'Ú_msgidrî)sS€ð$Ü×(Ñ(¬×)9Ñ)9¸-Ñ)HÓIˆð ˜4 ¨HÐ5Ñ 5Ð5øô ò$Ü—>‘>Ó#Šð$ús‚&0°AÁAr)rds-send patches as inline message text (default)óarcssend patches as attachmentsóirhs"send patches as inline attachmentss/email addresses of blind carbon copy recipientssEMAILócs"email addresses of copy recipientss#ask for confirmation before sendingódrgsadd diffstat output to messagesódates&use the given date as the sending datesDATEr9s,use the given file as the series descriptionsFILEófsemail address of senderónris!print messages that would be sentómómboxs3write messages to mbox file instead of sending thems)email addresses replies should be sent toósros0subject of first message (intro or single patch)sTEXTs in-reply-tosmessage identifier to reply tosMSGIDrDs flags to add in subject prefixessFLAGótsemail addresses of recipientsóemailógsgitsuse git extended diff formatrfsomit hg patch headeróoóoutgoings/send changes not found in the target repositoryóbr¥s-send changes not in target as a binary bundleóBóbookmarks-send changes only reachable by given bookmarksBOOKMARKs bundlenames"name of the bundle attachment filesNAMEórórevsa revision to sendsREVsforces?run even when remote repository is unrelated (with -b/--bundle)sbasesGa base changeset to specify instead of a destination (with -b/--bundle)s-send an introduction email for a single patchshg email [OPTION]... [DEST]...)Ú helpcategorycóò‡‡‡1‡2‡3—tj‰«Štj‰«Š1‰j d«}‰j d«}‰j d«}‰j d«}‰j d«}‰j d«} ‰j d«s|stj ‰«|s&|s$|s"|s | st jtd««‚|r |rt jtd ««‚tj‰dd«|s|r8t|«d kDrt jtd ««‚|r|d } nd } g}|r#|rt jtd««‚|}nG| rE| |jvr!t jtd«| z«‚tj|| «}tj ||«}|r t#| |«}|r|D� cgc]} d| z‘Œ c} ‰d<|j$j'dd«} | �rk|j$j)d« t+j,|i| «} | j3d«s|j$j)d«�n |D� cgc]} || ‘Œ }} | j5d„|D««}g}t7|«D]\}}||rŒ |j9|«Œ|r²t|«d kDr#td«}|| |d t|«d z fz}ntd«}|| |d fz}|D�cgc]}|j;«‘Œ}}dj=d„|j?d|«D««}td«| |fz}t j||¬«‚|rtAjB|«Š3ntAjD«Š3ˆ3fd „}‰j d!«xsC‰j'd"d!«xs/‰j'dd!«xstG‰d#‰jI««}|rStjJ‰«}tM| fi|¤Ž}|jO«}|jQd$d «tS|||fi|¤Ž}n!tU|||fitjJ‰«¤Ž}gŠ2d[ˆ1ˆˆ2ˆfd&„ }|d'd(¬)«}|st jtd*««‚|d+d(d,¬-«} |d.«}!|d/«}"‰jWdd0«}#|#tY‰j d1«xs‰j d0««z}#|#rωj[td2«d3¬4«‰j[d5|zd6¬4«‰2D]}$‰j[d7|$zd8¬4«Œ|D]2\}%}&}'‰j[d9|&zd:¬4«|'sŒ ‰j[|'d;¬4«Œ4‰j[d<«‰j]td=««rt jtd>««‚‰j[d<«‰j d?«xsd }(|(�At_j`|(«}(|(jcd@«sd@|(z}(|(jedA«s|(dAz }(tgjht_j`|««d })tjj‰|‰1‰j d««}d }*d }+‰jmtdB«tdC«t|«¬D«},t7|«D�]\}-\}%}&}' ||%dE«|%dF<|+s|%dF}+|+|%dG<|(r |(|%dI<|(|%dJ<|(rdE|%vr|%dF}(dKtqjr«ju«z|%dL<tgjv‰3d d(¬M«|%dN<‰3d d z‰3d fŠ3||%dO<dPj=|«|%dQ<| rdPj=| «|%dR<|!rdPj=|!«|%dS<|"rdPj=|"«|%dT<‰j d«rj‰jytdU«|&dV«‰j{d"«tj|‰d%¬W«}. |.j|%d%«‰j[d<«�Œe|*stj‚‰|¬X«}*‰jytdY«|&dV«|,j…|-|&¬Z«|s|%dS=t‡«}/tj||/d%¬W«}.|.j|%d%«||!z| z}0|*|)|0|/j‰««�Œ|,j‹«y cc} w#t j.$r)|j$j1td«| z«‚wxYwcc} wcc}w#tn$r|dH«|%dF<Y�ŒXwxYw#t€$rY�ŒŽwxYw)\aQsend changesets by email By default, diffs are sent in the format generated by :hg:`export`, one per message. The series starts with a "[PATCH 0 of N]" introduction, which describes the series as a whole. Each patch email has a Subject line of "[PATCH M of N] ...", using the first line of the changeset description as the subject text. The message contains two or three parts. First, the changeset description. With the -d/--diffstat option, if the diffstat program is installed, the result of running diffstat on the patch is inserted. Finally, the patch itself, as generated by :hg:`export`. With the -d/--diffstat or --confirm options, you will be presented with a final summary of all messages and asked for confirmation before the messages are sent. By default the patch is included as text in the email body for easy reviewing. Using the -a/--attach option will instead create an attachment for the patch. With -i/--inline an inline attachment will be created. You can include a patch both as text in the email body and as a regular or an inline attachment by combining the -a/--attach or -i/--inline with the --body option. With -B/--bookmark changesets reachable by the given bookmark are selected. With -o/--outgoing, emails will be generated for patches not found in the destination repository (or only those which are ancestors of the specified revisions if any are provided) With -b/--bundle, changesets are selected as for --outgoing, but a single email containing a binary Mercurial bundle as an attachment will be sent. Use the ``patchbomb.bundletype`` config option to control the bundle type as with :hg:`bundle --type`. With -m/--mbox, instead of previewing each patchbomb message in a pager or sending the messages directly, it will create a UNIX mailbox file with the patch emails. This mailbox file can be previewed with any mail user agent which supports UNIX mbox files. With -n/--test, all steps will run, but mail will not be sent. You will be prompted for an email recipient address, a subject and an introductory message describing the patches of your patchbomb. Then when all is done, patchbomb messages are displayed. In case email sending fails, you will find a backup of your series introductory message in ``.hg/last-email.txt``. The default behavior of this command can be customized through configuration. (See :hg:`help patchbomb` for details) Examples:: hg email -r 3000 # send patch 3000 only hg email -r 3000 -r 3001 # send patches 3000 and 3001 hg email -r 3000:3005 # send patches 3000 through 3005 hg email 3000 # send patch 3000 (deprecated) hg email -o # send all patches not in default hg email -o DEST # send all patches not in DEST hg email -o -r 3000 # send all ancestors of 3000 not in default hg email -o -r 3000 DEST # send all ancestors of 3000 not in DEST hg email -B feature # send all ancestors of feature bookmark hg email -b # send bundle of all patches not in default hg email -b DEST # send bundle of all patches not in DEST hg email -b -r 3000 # bundle of all ancestors of 3000 not in default hg email -b -r 3000 DEST # bundle of all ancestors of 3000 not in DEST hg email -o -m mbox && # generate an mbox file... mutt -R -f mbox # ... and view it with mutt hg email -o -m mbox && # generate an mbox file ... formail -s sendmail \ # ... and use formail to send from the mbox -bm -t < mbox # ... using sendmail Before using this command, you will need to enable email in your hgrc. See the [email] section in hgrc(5) for details. r¥rór÷rýrrris0specify at least one changeset with -B, -r or -osE--outgoing mode always on with --bundle; do not re-specify --outgoingr:stoo many destinationsrNs)use only one form to specify the revisionsbookmark '%s' not foundrXsrevsrrs0checking that revision exist in the public repo s!unable to access public repo: %s sknowns/skipping existence checks: public repo too old c3ó<K—|]}|j«–—Œy­w©N)rˆ©Ú.0Úhs r'Ú zemail..Hsèø€Ð$;±s°! Q§V¡V§X±sùs‚s'public "%s" is missing %s and %i othersspublic url %s is missing %srCc3ó&K—|] }d|z–—Œ y­w)s-r %sN©rs r'r zemail..Usèø€ð$Ù*N Q�H˜q•LÑ*Nùs‚s heads(%ld)suse 'hg push %s %s')Úhintcó:•—t|ddt‰d««S)Nér)rîÚint)ÚidÚ start_times €r'Úgenmsgidzemail..genmsgidasø€Ü�b˜˜"�gœs :¨a¡=Ó1Ó2Ð2r)rrúsFromrªFc󺕗|j«}|jdd«j«}‰ j|«}|rL‰ jd|dj |«fz«t j ‰ |‰‰ jd««S‰ jd|«xs‰ jd|«}|s8‰ jd|«xs‰ jd|«}|s|rt‰ ||¬«}|r>‰ jd||fz«t j ‰ |g‰‰ jd««S|r(t j ‰ |g‰‰ jd««SgS) Nó-ó_s%s: %ss, rirúrr) ÚlowerÚreplacer;r,rFr Úaddrlistencoder#Ú hasconfigr6) ÚheaderÚaskrÚ configkeyÚoptÚaddrsÚaddrÚ specifiedr…r=Ú showaddrsr"s €€€€r'Úgetaddrszemail..getaddrswsKø€Ø—L‘L“Nˆ Ø�n‰n˜T 4Ó(×.Ñ.Ó0ˆØ—‘˜“ ˆÙ Ø × Ñ ˜Y¨&°%·*±*¸UÓ2CÐ)DÑDÔ EÜ×&Ñ& r¨5°)¸T¿X¹XÀgÓ=NÓOÐ Oð�y‰y˜ 9Ó-ò °·±Ø ˜)ó2 ˆñØŸ ™  X¨yÓ9ò¸R¿\¹\ؘió>ˆIñ¡Ü˜b &°'Ô:�Ù Ø × Ñ ˜Y¨&°$¨Ñ7Ô 8Ü×&Ñ& r¨D¨6°9¸d¿h¹hÀwÓ>OÓPÐ PÙ Ü×&Ñ&Ø�W�I˜y¨$¯(©(°7Ó*;óð ðˆ r)sToT)rsno recipient addresses providedsCcr))rrsBccsReply-Torrgs Final summary: spatchbomb.finalsummary)Úlabels From: %s spatchbomb.froms%s s patchbomb.tos Subject: %s spatchbomb.subjectspatchbomb.diffstatsres1are you sure you want to send (yn)?$$ &Yes $$ &Nospatchbomb canceleds in_reply_toÚ<Ú>ssendingsemails)Úunitr[rqz Message-IdzX-Mercurial-Series-IdÚ patchbombz In-Reply-ToÚ ReferenceszMercurial-patchbomb/%sz User-Agent)Ú localtimeÚDateÚFromz, ÚToÚCcÚBcczReply-Tos displaying s ... )Ú mangle_from_)Úmboxssending )Úitem)FN)Frržr r…r;Úvalidateconfigr ÚAbortrrÚcheck_at_most_one_argrYÚ _bookmarksrÚ bookmarkrevsr Úrevrangerær"r#Údebugr ÚpeerÚ RepoErrorr<ÚcapableÚknownrÕr,rPrFÚsetrÚ parsedateÚmakedater6ÚusernameÚ strkwargsr´ÚcopyrvrÍrÛÚ configboolÚboolrMÚ promptchoicerr€rrr~ÚeutilÚ parseaddrÚ addressencodeÚ makeprogressÚ TypeErrorrÚversionÚdecodeÚ formatdateráÚpagerÚ GeneratorÚflattenÚBrokenPipeErrorÚconnectÚupdaterGrOÚcomplete)4r"r!rŸr=rªÚdater1ÚoutgoingrPÚbookmarkr¯r¡r&Ú publicpeerrSr=ÚmissingrZr r�r%Ú missingrevsÚrevhintr rr½ÚstroptsÚ bundledataÚ bundleoptsrÙr#ÚtoÚccÚbccÚreplytoÚconfirmr Úmr”r‹ÚparentÚ sender_addrÚsendmailÚ firstpatchÚprogressrÚÚ generatorÚfpÚalldestsr…r"rs4` ` @@@r'ÚemailrnpsØü€ôh × Ñ  Ó %€Dä—‘˜rÓ"€Ià �X‰X�iÓ €FØ �8‰8�GÓ €DØ �8‰8�GÓ €DØ�x‰x˜ Ó$€HØ �(‰(�6Ó €CØ�x‰x˜ Ó$€Hà �H‰H�WÔ ¡ä ×јBÔá ‘C™8¡v±Ü�k‰kÜ ÐAÓ Bó ð ñ‘FÜ�k‰kÜ ð1ó ó ð ô  ×!Ñ! $¨° Ô<á‘6Ü ˆt‹9�qŠ=Ü—+‘+œaÐ 8Ó9Ó:Ð :٠ؘ‘7‰DàˆD؈á Ù Ü—+‘+œaÐ LÓMÓNÐ NØ‰Ù Ø ˜4Ÿ?™?Ñ *Ü—+‘+œaÐ :Ó;¸hÑFÓGÐ GÜ×#Ñ# D¨(Ó3ˆä × Ñ ˜t TÓ *€DÙܘD $¨Ó-ˆÙ Ù,0Ó1©D q˜ ›¨DÑ1ˆˆW‰ ð—‘—‘˜|¨\Ó:€IÚØ �‰� ‰ ÐJÔKð ÜŸ™  r¨9Ó5ˆJð ×!Ñ! (Ô+Ø �G‰G�M‰MÐMÖ Ná$(Ó)¡D˜q�4˜“7 DˆCÐ)Ø×$Ñ$Ñ$;±sÓ$;Ó;ˆE؈GÜ# Cž.‘��QؘS“zØ—N‘N 1Õ%ð)ñÜ�w“< !Ò#ÜÐFÓG�CؘI w¨q¡z´3°w³<À!Ñ3CÐDÑD‘CäÐ:Ó;�CؘI w¨q¡zÐ2Ñ2�CÙ4;Ó<±G¨S˜sŸw™w�y°G� Ð<ØŸ)™)ñ$Ø*.¯(©(°=À+Ô*Nó$ó�ôÐ/Ó0°I¸wÐ3GÑG�Ü—k‘k #¨DÔ1Ð1ñ Ü×'Ñ'¨Ó-‰ ä×&Ñ&Ó(ˆ ô3ð �‰�Óò .Ø �9‰9�X˜wÓ 'ò .à �9‰9�\ 7Ó +ò .ô �"�g˜rŸ{™{›}Ó -ð  ñÜ×$Ñ$ TÓ*ˆÜ  dÑ6¨gÑ6ˆ Ø—\‘\“^ˆ Ø�‰�x Ô&ܘd F¨JÑE¸*ÑE‰ä˜T 6¨4ÑL´8×3EÑ3EÀdÓ3KÑLˆà€I÷ðñ6 �%˜TÔ "€BÙ ä�k‰kœ!Ð>Ó?Ó@Ð@Ù �%˜T¨3Ô /€BÙ �6Ó €CÙ�{Ó#€Gà�m‰m˜L¨*Ó5€GØ Œt�D—H‘H˜[Ó)ÒA¨T¯X©X°jÓ-AÓBÑB€GáØ �‰”Ð*Ó+Ð3LˆÔMØ �‰�- &Ñ(Ð1BˆÔCÛˆDØ �H‰H�W˜t‘^¨?ˆHÕ ;ðã‰KˆAˆt�RØ �H‰HÐ&¨Ñ-Ð6JˆHÔ KÚØ—‘˜Ð#9�Õ:ð ð �‰�ŒØ �?‰?Ü ÐBÓ Cô ô—+‘+œaÐ 5Ó6Ó7Ð 7à‡H�HˆU„Oà �X‰X�nÓ %Ò -¨€Fà ÐÜ×&Ñ& vÓ.ˆØ× Ñ  Ô%ؘ6‘\ˆFØ�‰˜sÔ#Ø �c‰MˆFä—/‘/¤(×"7Ñ"7¸Ó"?Ó@ÀÑC€KÜ × Ñ   F¨I°t·x±xÀÓ7HÓ I€FØ€HØ€JØ�‰Ü ˆ*‹ œA˜i›L´°D³ ðó€Hô& dŸOш‰=ˆAˆt�Rð 4Ù& qÐ);Ñ'<Ó=ˆAˆl‰OÙØ˜|™_� Ø)3ˆAÐ%Ñ &ñ Ø%ˆAˆmÑ Ø$ˆAˆl‰OÙÐ+°1Ñ4Ø�|‘_ˆFà2´T·\±\³^×5JÑ5JÓ5LÑLˆˆ,‰Ü×$Ñ$ Z°¡]¸dÔCˆˆ&‰ à  ‘m aÑ'¨°A©Ð7ˆ ؈ˆ&‰ Ø—)‘)˜B“-ˆˆ$‰Ù Ø—i‘i “mˆAˆd‰GÙ Ø—y‘y “~ˆAˆe‰HÙ Ø ŸI™I gÓ.ˆAˆj‰MØ �8‰8�GÔ Ø �I‰I”a˜Ó'¨¨yÔ 9Ø �H‰H�XÔ ÜŸ™ r¸Ô>ˆIð Ø×!Ñ! ! UÔ+Ø—‘˜–ñÜŸ<™<¨°Ô6�Ø �I‰I”a˜ “n d¨IÔ 6Ø �O‰O˜A DˆOÔ )Ùà�e�HÜ“ˆBÜŸ™ r¸Ô>ˆIØ × Ñ ˜a Ô 'ؘC‘x "‘}ˆHÙ �[ (¨B¯K©K«MÖ :ð_,ðb ×ÑÕùòq2øô�‰ò Ø �G‰G× Ñ ÜÐ7Ó8¸9ÑDô ð ð  üò*ùò=øô`ò 4Ù& {Ó3ˆAˆlŒOð 4ûô6#ò Úð úsBÇ2 dÈ?dÊ eÌ&e Û3eà'#e)är‡s¸ðñAõF'ß#Ð#ß-Ð-ÝÛ Û åÝ#Ý÷÷÷÷÷ ð �=‰=€à €Ø ˆ)× Ñ ˜HÓ %€à€ Ø !ˆY× !Ñ ! +Ó .€ á ØØØ õñ  ØØ Ø õñ  ØØ Ø õñ  ØØØ õñ  ØØØ õñ  ØØ Ø õñ  ØØ Ø õñ  ØØØ õñ  ØØØ õñ  ØØ Ø õð#€ ò ò 8ò 1ó -ò ò( ò Bð.óaòH-ò,ò8ò2ò<!óB,ò^ ò 6ð ˆ'�4™ÐKÓLÐMØ ˆ9�d™AÐ<Ó=Ð>Ø ˆ9�d™AÐCÓDÐEà ØØ Ù Ð <Ó=Ù ˆ(‹ ð ð ˆ5�"‘aÐ=Ó>ÁÀ(à ÐL؈*�d™AÐDÓEÐFØ ˆ;˜™aÐ BÓCÐDà ØØ Ù Ð 3Ó4Ù ˆ'‹ ð ð ØØ Ù Ð 9Ó:Ù ˆ'‹ ð ð ˆ7�C™Ð5Ó6¹¸(» ÐDØ ˆ7�D™!Ð@ÓAÐBà ØØ Ù Ð @ÓAÙ ˆ'‹ ð ð ØØ Ù Ð 6Ó7Ù ˆ(‹ ð ð ØØ Ù Ð =Ó>Ù ˆ'‹ ð ð ØØ Ù Ð +Ó,Ù ˆ(‹ ð ð ˆ'�2‘qÐ<Ó=¹qÀ»zÐJØ ˆ5�"‘aÐ8Ó9¹1¸X»;ÐGðw< € ñ~ Ø à ˆv�t™QÐ>Ó?Ð@Ø ˆh˜™aÐ 7Ó8Ð9à Ø Ø Ù Ð@Ó Að  ð Ø Ø Ù Ð>Ó ?ð  ð Ø Ø Ù Ð>Ó ?Ù ˆk‹Nð  ð Ø Ø Ù Ð3Ó 4Ù ˆg‹Jð  ð ˆv�r™1Ð2Ó3±Q°v³YÐ?à Ø Ø Ù ð&ó ð  ð Ø Ø Ù ð&ó ñ ˆf‹Ið ð Ø Ø Ù Ð>Ó ?ð  ðc7ðpñq8ðr×Ññs9ñtÐ'Ó(Ø×/Ñ/ô{>ñ~@ó>ñ~@r)