-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/win32.pyc


\,Tc
@s8ddlZddlZddlZddlZddlZejjZejjZ	ejj
ZejZ
ejZejZejZejZejZZejZeZedjZdZdZdZdZ ej!ejej!ejkr	ejZ"ejZ#n9ej!ej$ej!ejkrBej%Z"ej$Z#ndej&fdYZ'dej&fd	YZ(d
Z)dZ*dZ+d
Z,dZ-dZ.dZ/dZ0dZ1dej&fdYZ2dej&fdYZ3dZ4dZ5dej&fdYZ6dej&fdYZ7dej&fdYZ8edjZ9dZ:dZ;d ej&fd!YZ<eeeejeeegej=_>eej=_?eejgej@_>e
ej@_?egejA_>e
ejA_?y(eeejgejB_>e
ejB_?WneCk
rnXeegejD_>e
ejD_?ee
egejE_>eejE_?eejgejF_>e
ejF_?gejG_>eejG_?eejegejH_>eejH_?eeejeje
eejeejejg
ejI_>e
ejI_?egejJ_>dejJ_?gejL_>eejL_?ejMe
eZNeNe
gejO_>e
ejO_?egejP_>eejP_?eejgejQ_>e
ejQ_?ejejge	jR_>e
e	jR_?eejgejS_>eejS_?eejTgejU_>e
ejU_?ejMe
ee#ZVeVe#gejW_>e
ejW_?eegejX_>e
ejX_?eejgejY_>e
ejY_?eejgejZ_>e
ejZ_?d"Z[d#Z\d$Z]d%Z^d&Z_d'Z`d(Zad)Zbd*ZcgZdd+Zed,Zfd-Zgd.Zhd/eifd0YZjd1Zkd2Zld3ZmdS(4iNiiiWizt	_FILETIMEcBs eZdefdefgZRS(t
dwLowDateTimetdwHighDateTime(t__name__t
__module__t_DWORDt_fields_(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyR(s	t_BY_HANDLE_FILE_INFORMATIONcBsheZdefdefdefdefdefdefdefdefdefd	efg
ZRS(
tdwFileAttributestftCreationTimetftLastAccessTimetftLastWriteTimetdwVolumeSerialNumbert
nFileSizeHightnFileSizeLowtnNumberOfLinkstnFileIndexHight
nFileIndexLow(RRRRR(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyR,s									iiiiiii iit_STARTUPINFOcBseZdefdefdefdefdefdefdefdefdefd	efd
efdefdefd
efdejfdefdefdefgZRS(tcbt
lpReservedt	lpDesktoptlpTitletdwXtdwYtdwXSizetdwYSizet
dwXCountCharst
dwYCountCharstdwFillAttributetdwFlagstwShowWindowtcbReserved2tlpReserved2t	hStdInputt
hStdOutputt	hStdError(	RRRt_LPSTRt_WORDtctypestc_char_pt_HANDLER(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyRKs$																t_PROCESS_INFORMATIONcBs2eZdefdefdefdefgZRS(thProcessthThreadtdwProcessIdt
dwThreadId(RRR)RR(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyR*_s			it_COORDcBs&eZdejfdejfgZRS(tXtY(RRR'tc_shortR(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyR/hst_SMALL_RECTcBs>eZdejfdejfdejfdejfgZRS(tLefttToptRighttBottom(RRR'R2R(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyR3lst_CONSOLE_SCREEN_BUFFER_INFOcBs;eZdefdefdefdefdefgZRS(tdwSizetdwCursorPositiontwAttributestsrWindowtdwMaximumWindowSize(RRR/R&R3R(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyR8rs
				iit_tagPROCESSENTRY32cBs{eZdefdefdefdejfdefdefdefdefdefd	ejefg
Zd
Z	RS(tdwsizetcntUsaget
th32ProcessIDtth32DefaultHeapIDtth32ModuleIDt
cntThreadstth32ParentProcessIDtpcPriClassBaseRt	szExeFilecCs)tt|jtj||_dS(N(tsuperR>t__init__R'tsizeofR?(tself((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyRIs(
RRRR'tc_void_pt_LONGtc_chart	_MAX_PATHRRI(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyR>s								cCs/tj}t|jd||jfdS(Ns%s: %s(R'tWinErrortOSErrorterrnotstrerror(tnameterr((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyt
_raiseoserrorscCstj|dttBtBdttd}|tkrBt	|nz9t
}tj|tj
|svt	|n|SWdtj|XdS(Ni(t	_kernel32tCreateFileAt_FILE_SHARE_READt_FILE_SHARE_WRITEt_FILE_SHARE_DELETEtNonet_OPEN_EXISTINGt_FILE_FLAG_BACKUP_SEMANTICSt_INVALID_HANDLE_VALUERVRtGetFileInformationByHandleR'tbyreftCloseHandle(RTtfhtfi((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyt_getfileinfos
	
cCsHy&tj||ds%t|nWntk
rCt|nXdS(N(RWtCreateHardLinkAR\RVtAttributeError(tsrctdst((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pytoslinks

cCs
t|jS(s-return number of hardlinks for the given file(ReR(RT((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pytnlinksscCsLt|}t|}|j|jkoK|j|jkoK|j|jkS(sDReturns whether path1 and path2 refer to the same file or directory.(ReRRR(tpath1tpath2tres1tres2((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pytsamefiles
cCs(t|}t|}|j|jkS(s7Returns whether path1 and path2 are on the same device.(ReR(RlRmRnRo((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyt
samedevicescCsttjtt|}|rdz5t}tj|tj|rO|jt	kSWdtj
|XntjtkS(sOreturn True if pid is still running or unable to
    determine, False otherwiseN(
RWtOpenProcesst_PROCESS_QUERY_INFORMATIONtFalseRtGetExitCodeProcessR'Ratvaluet
_STILL_ACTIVERbtGetLastErrort_ERROR_INVALID_PARAMETER(tpidthtstatus((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyttestpids	cCstd}tj|d}tjdtj||}|dkrOtjn||krmtjtn|jS(sreturn full path of hg.exeiXiiN(	R'tcreate_string_bufferRWtGetModuleFileNameAR\RaRPt_ERROR_INSUFFICIENT_BUFFERRv(tsizetbuftlen((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pytexecutablepathscCsYtd}tj|jd}tjtj|tj|sRtjn|jS(sreturn name of current useri,i(RR'R~Rvt	_advapi32tGetUserNameARaRP(RR((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pytgetusers
$cCsNd}trdSt|}tj|tj|tsJtjndS(sRegister a termination handler for console events including
    CTRL+C. python signal handlers do not work well with socket
    operations.
    cSstjddS(Ni(RWtExitProcess(tevent((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pythandler.sN(t_signalhandlert_SIGNAL_HANDLERtappendRWtSetConsoleCtrlHandlertTrueR'RP(RR{((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pytsetsignalhandler)s	
cCs/d}tj}tjt||dS(NcSsIt}tj|tj|||jkrEtj|ttSt	S(N(
Rt_user32tGetWindowThreadProcessIdR'RaRvt
ShowWindowt_SW_HIDERtR(thwndRztwpid((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pytcallback:s	(RWtGetCurrentProcessIdRtEnumWindowst_WNDENUMPROC(RRz((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyt
hidewindow8s	cCssd}tjt}|dks-|tkr1|St}tj|tj|sY|S|j	j
|j	j}|S(NiO(RWtGetStdHandlet_STD_ERROR_HANDLER\R_R8tGetConsoleScreenBufferInfoR'RaR<R6R4(twidtht	screenbuftcsbi((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyt	termwidthEs		cCst}tjtd}|tkr3tjnz]tj|tj|}x;|r|j	|krp|j
Stj|tj|}qTWWdtj|Xtj
tkrtjndS(sXreturn the 1st found child of the given pid

    None is returned when no child is foundiN(R>RWtCreateToolhelp32Snapshott_TH32CS_SNAPPROCESSR_R'RPtProcess32FirstRaRERAt
Process32NextRbRxt_ERROR_NO_MORE_FILESR\(Rztpetphtr((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyt	_1stchildWs		#t_tochildpidcBs eZdZdZdZRS(shelper for spawndetached, returns the child pid on conversion to string

    Does not resolve the child pid immediately because the child may not yet be
    started.
    cCs
t|S(sSreturns the child pid of the first found child of the process
        with this pid(R(RK((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pytchildpiduscCs*|j}|dkr d|St|S(Ns %d(RR\tstr(RKtppid((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyt__str__ys(RRt__doc__RR(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyRos	cCst}tjt|_t}d}x,tjD]!}|d|tj|f7}q4W|shd}n|d7}tj|}tjj	dd}|d|}t
jd|ddt
t|tjtj|tj|
}|stjnt|jS(Nts%s=%sttCOMSPECscmd.exes /c (RR'RJRR*tostenviront
subprocesstlist2cmdlinetgetRWtCreateProcessAR\Rtt_CREATE_NO_WINDOWtgetcwdRaRPRR-(targstsitpitenvtktcomspectres((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyt
spawndetacheds$			
*cCstjj|r+ttjd|nxtdD]e}d|tjddf}ytj	||PWq8t
k
r}|jtjkrqq8Xq8Wttjdytj|WnFt
k
rt
j|tytj|Wq
t
k
rq
XnXdS(s3try to implement POSIX' unlink semantics on Windowss'Unlinking directory not permitted: '%s'i
s%s-%08xiIs"No usable temporary filename foundN(RtpathtisdirtIOErrorRRtEPERMtxrangetrandomtrandinttrenameRQtEEXISTtunlinkRWtSetFileAttributesAt_FILE_ATTRIBUTE_NORMAL(tfttriesttempte((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyRs(	

cCs*tj||r&tj|tndS(N(RtmkdirRWRt#_FILE_ATTRIBUTE_NOT_CONTENT_INDEXED(Rt
notindexed((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pytmakedirs
(nR'RRRRRtwindlltkernel32RWtadvapi32Rtuser32Rtc_longt_BOOLtc_ushortR&tc_ulongRtc_uintt_UINTRMR(t_LPCSTRR%RLR)t_HWNDRvR_t_ERROR_SUCCESSRRyRRJt_WPARAMt_LPARAMt
c_longlongtc_ulonglongt	StructureRRRYRZR[R]R^RRRsRwRR*RRR/R3R8RRROR>RXtargtypestrestypeR`RbRfRgRRrRuRxRRRR\RtWINFUNCTYPERRRRRRtc_intRRRRRRRVReRjRkRpRqR}RRRRRRRtintRRRR(((s3/usr/lib/python2.7/dist-packages/mercurial/win32.pyt<module>s<					
	$	$	

							
				
			!	4

Copyright © 2017 || Recoded By Mr.Bumblebee