HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //usr/lib64/python2.7/site-packages/hgext/infinitepush/bundleparts.pyc
�
1�3\c@@s�ddlmZddlmZddlmZmZmZmZm	Z	m
Z
ddlmZej
Z
dZd�Zd�Zd	�Zd
efd��YZdS(
i(tabsolute_import(t_(tbundle2tchangegroupterrort
extensionst
revsetlangtutili(tcommonsb2x:infinitepushcC@sp|js!tjtd���nttj|�krRtjtd�t��nt|tj	d|j�|�t
j|�}|jd�t
|�}t||j�t
j|||d�}i}||d<|r||d<d|d	<|j}	||	kr|	j|�j�|d	<qnt|�s8d
|d<ng}
|
jtjtj�d|j�d
|��|
S(Nsno commits to pushsno server support for %rs%lnt01tpusht	cgversiontbookmarkttbookprevnodet1tpushbackbookmarkstadvisoryparamstdata(tmissingRtAbortRtscratchbranchparttypeRtbundle2capst_validaterevsetRt
formatspecRtsupportedoutgoingversionstdiscardtmint
_handlelfst
makestreamt
_bookmarkst	changectxthextisremotebooksenabledtappendt
bundleparttuppert	iteritems(trepotpeertoutgoingtuiRtsupportedversionsRtcgtparamst	bookmarkstparts((sD/usr/lib64/python2.7/site-packages/hgext/infinitepush/bundleparts.pytgetscratchbranchpartss6	



	

cC@sp|j|�s'tjtd���n|rl|jd|�}t|�dkrltjtd���qlndS(sAAbort if the revs to be pushed aren't valid for a scratch branch.snothing to pushs	heads(%r)is2cannot push more than one head to a scratch branchN(trevsRRRtlen(R&trevsetRtheads((sD/usr/lib64/python2.7/site-packages/hgext/infinitepush/bundleparts.pyREscC@s?y&tjd�}|jj||�Wntk
r:dSXdS(s�Special case if lfs is enabled

    If lfs is enabled then we need to call prepush hook
    to make sure large files are uploaded to lfs
    tlfsN(RtfindtwrappertuploadblobsfromrevstKeyError(R&Rtlfsmod((sD/usr/lib64/python2.7/site-packages/hgext/infinitepush/bundleparts.pyRPs

t
copiedpartcB@s,eZdZd�Zd�Zdd�ZRS(s9a copy of unbundlepart content that can be consumed latercC@sp|j|_|j|_|j|_|j|_|j|_|j|_|j|_tj|j	��|_
dS(N(ttypetidt	mandatorytmandatoryparamsRR,t
mandatorykeysRtstringiotreadt_io(tselftpart((sD/usr/lib64/python2.7/site-packages/hgext/infinitepush/bundleparts.pyt__init__`scC@sdS(N((RC((sD/usr/lib64/python2.7/site-packages/hgext/infinitepush/bundleparts.pytconsumelscC@s-|dkr|jj�S|jj|�SdS(N(tNoneRBRA(RCtsize((sD/usr/lib64/python2.7/site-packages/hgext/infinitepush/bundleparts.pyRAos
N(t__name__t
__module__t__doc__RERFRGRA(((sD/usr/lib64/python2.7/site-packages/hgext/infinitepush/bundleparts.pyR:]s		N(t
__future__Rtmercurial.i18nRt	mercurialRRRRRRR
RR!RR/RRtobjectR:(((sD/usr/lib64/python2.7/site-packages/hgext/infinitepush/bundleparts.pyt<module>s.			,