File: //usr/lib/python2.7/dist-packages/mercurial/similar.pyc
ó
ÛXc @@ sg d d l m Z d d l Z d d l m Z d d l m Z m Z m Z d „ Z d „ Z
d „ Z d S( i ( t absolute_importNi ( t _( t bdifft mdifft utilc c@ s1 t | ƒ t | ƒ } i } xj t | ƒ D]\ \ } } | j j t d ƒ | d | d t d ƒ ƒt j | j ƒ ƒ j ƒ } | | | <q) Wxˆ t | ƒ D]z \ } } | j j t d ƒ | t | ƒ d | d t d ƒ ƒt j | j ƒ ƒ j ƒ } | | k r– | | | f Vq– q– W| j j t d ƒ d ƒ d S( s¦ find renamed files that have no changes
Takes a list of new filectxs and a list of removed filectxs, and yields
(before, after) tuples of exact matches.
s searching for exact renamest totalt unitt filesN(
t lent enumeratet uit progressR t hashlibt sha1t datat digestt None( t repot addedt removedt numfilest hashest it fctxt h( ( s5 /usr/lib/python2.7/dist-packages/mercurial/similar.pyt _findexactmatches s
"c
#@ s- i } xÐ t | ƒ D]Â \ } ‰ | j j t d ƒ | d t | ƒ d t d ƒ ƒt j ‡ f d † ƒ ‰ ‡ f d † } x[ | D]S } | j | d | f ƒ d } | | j ƒ ƒ } | | k r~ ˆ | f | | <q~ q~ Wq W| j j t d ƒ d ƒ x4 | j
ƒ D]&