-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/hgext/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/hgext/relink.pyc

ó
Ì\,Tc@s¨dZddlmZmZmZddlmZddlZddlZiZ	ej
e	ƒZ
dZe
dgedƒƒdd„ƒZ
d	„Zd
„Zd„ZdS(s-recreates hardlinks between repository clonesiÿÿÿÿ(tcmdutilthgtutil(t_Ntinternaltrelinks[ORIGIN]c	Ksˆtjtdƒs&tjtdƒr>tjtdƒƒ‚ntj|j|j|pYd|pbdƒƒ}|jtdƒ|j	j
|j	j
fƒ|j|jkr½|jtdƒƒdStj|j	j
|j	j
ƒsótjtd	ƒƒ‚n|j
ƒ}zw|j
ƒ}zYtt||ƒƒ}t||j	j
|j	j
|ƒ}t|j	j
|j	j
||ƒWd|jƒXWd|jƒXdS(
s³recreate hardlinks between two repositories

    When repositories are cloned locally, their data files will be
    hardlinked so that they only use the space of a single repository.

    Unfortunately, subsequent pulls into either repository will break
    hardlinks for any files touched by the new changesets, even if
    both repositories end up pulling the same changes.

    Similarly, passing --rev to "hg clone" will fail to use any
    hardlinks, falling back to a complete copy of the source
    repository.

    This command lets you recreate those hardlinks and reclaim that
    wasted space.

    This repository will be relinked to share space with ORIGIN, which
    must be on the same local disk. If ORIGIN is omitted, looks for
    "default-relink", then "default", in [paths].

    Do not attempt any read operations on this repository while the
    command is running. (Both repositories will be locked against
    writes.)
    tsamefilet
samedevices*hardlinks are not supported on this systemsdefault-relinktdefaultsrelinking %s to %s
sthere is nothing to relink
Ns/source and destination are on different devices(RtsafehasattrtAbortRRt
repositorytbaseuit
expandpathtstatuststoretpathtrootRtlocktsortedtcollecttprunet	do_relinktrelease(	tuitrepotorigintoptstsrct	locallockt
remotelockt
candidatesttargets((s0/usr/lib/python2.7/dist-packages/hgext/relink.pyRs()!#c
Cs—ttjjƒ}g}t|djƒƒ}|dd}|jj}d}|jtdƒ||fƒxòtj|ƒD]á\}}}	|j	ƒ|t|ƒ|}
x±t
|	ƒD]£}|dd
krÑqµntjtjj||ƒƒ}tj
|jƒsqµn|d	7}|jtjj|
|ƒ|fƒ|jtd
ƒ||tdƒ|ƒqµWq{W|jtd
ƒdƒ|jtdƒt|ƒƒ|S(Nttipiiis6tip has %d files, estimated total number of files: %s
iþÿÿÿs.ds.iit
collectingtfiless%collected %d candidate storage files
(s.ds.i(tlentosRtseptmanifestRRRtwalktsortRtstattjointS_ISREGtst_modetappendtprogresstNone(
RRtseplenRtlivettotaltpostdirpathtdirnamest	filenamestrelpathtfilenametst((s0/usr/lib/python2.7/dist-packages/hgext/relink.pyRFs.

"-c
Cs
d„}g}t|ƒ}d}x²|D]ª\}}	|d7}tjj||ƒ}
tjj||ƒ}||
||	ƒ}|s—|jd|ƒq(n|j||jfƒ|jtdƒ||tdƒ|ƒq(W|jtdƒdƒ|j
tdƒt|ƒƒ|S(NcSs‚ytj|ƒ}Wntk
r'tSXtj||ƒr>tStj||ƒshtjtdƒƒ‚n|j	|j	kr~tS|S(Ns/source and destination are on different devices(
R%R*tOSErrortFalseRRRR
Rtst_size(RtdstR:tts((s0/usr/lib/python2.7/dist-packages/hgext/relink.pyt
linkfiltergs
iisnot linkable: %s
tpruningR#s,pruned down to %d probably relinkable files
(R$R%RR+tdebugR.R=R/RR0R(
RRR>RR@R R3R4tfnR:tsrcpathttgtR?((s0/usr/lib/python2.7/dist-packages/hgext/relink.pyRfs"	
)cCsÎd„}d}d}d}d}t|ƒ}	x^|D]V\}
}|d7}tjj||
ƒ}tjj||
ƒ}
t|dƒ}t|
dƒ}|j|ƒ}x8|rÛ|j|ƒ}||krÉPn|j|ƒ}q¤W|jƒ|jƒ|r
|jd|
ƒq4nyJ|||
ƒ|jt	dƒ||
t	dƒ|	ƒ|d7}||7}Wq4t
k
r‰}|jd	|
t|ƒfƒq4Xq4W|jt	dƒdƒ|jt	d
ƒ|tj|ƒfƒdS(NcSsf|d}tj||ƒytj||ƒWn$tk
rTtj||ƒ‚nXtj|ƒdS(Ns.bak(R%trenameRtoslinkR;tremove(RR>tbak((s0/usr/lib/python2.7/dist-packages/hgext/relink.pyt
relinkfileŠs

iiitrbsnot linkable: %s
t	relinkingR#s%s: %s
s!relinked %d files (%s reclaimed)
(R$R%RR+tfiletreadtcloseRBR/RR;twarntstrR0RRt	bytecount(RR>R#RRJtCHUNKLENtrelinkedt
savedbytesR4R3tftsztsourceREtsfptdfptsintdintinst((s0/usr/lib/python2.7/dist-packages/hgext/relink.pyR‰sB	

	


%
%(t__doc__t	mercurialRRRtmercurial.i18nRR%R*tcmdtabletcommandt
testedwithR0RRRR(((s0/usr/lib/python2.7/dist-packages/hgext/relink.pyt<module>s3	 	#

Copyright © 2017 || Recoded By Mr.Bumblebee