HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/hgext/automv.pyc
ó
ŰXc@@s|dZddlmZddlmZddlmZmZmZm	Z	m
Z
mZd„Zd„Z
d„Zd„Zd	S(
sxCheck for unrecorded moves at commit time (EXPERIMENTAL)

This extension checks at commit/amend time if any of the committed files
comes from an unrecorded mv.

The threshold at which a file is considered a move can be set with the
``automv.similarity`` config option. This option takes a percentage between 0
(disabled) and 100 (files must be identical), the default is 95.

i(tabsolute_import(t_(tcommandstcopiesterrort
extensionstscmutiltsimilarcC@s?tjtjdtƒ}|djdddtdƒfƒdS(Ntcommitits	no-automvs%disable automatic file move detection(RtwrapcommandRttabletmvchecktappendtNoneR(tuitentry((s0/usr/lib/python2.7/dist-packages/hgext/automv.pytextsetup's

	c	O@sd	}|jdtƒ}|sĂ|jdddƒ}d|koJdknsgtjtdƒƒ‚n|dkrĂtj|d	||ƒ}t	||ƒ\}	}
t
|||	|
|dƒ}qĂn|jƒ=|d	k	rőtj|d
d|ƒn|||||ŽSWd	QXd	S(s&Hook to check for moves at commit timet	no_automvtautomvt
similarityi_iids+automv.similarity must be between 0 and 100gY@N(((
RtpoptFalset	configintRtAbortRRtmatcht_interestingfilest_findrenamestwlockt_markchanges(torigRtrepotpatstoptstrenamestdisabledt	thresholdRtaddedtremoved((s0/usr/lib/python2.7/dist-packages/hgext/automv.pyR.s
cC@sr|jd|ƒ}|d}|d}tj|d|d|ƒ}g|D]}||krJ|^qJ}||fS(s˝Find what files were added or removed in this commit.

    Returns a tuple of two lists: (added, removed). Only files not *already*
    marked as moved are included in the added list.

    Riit.N(tstatusRt_forwardcopiesR(RtmatchertstatR%R&tcopytf((s0/usr/lib/python2.7/dist-packages/hgext/automv.pyRAs

%c	C@sŔi}|dkr“x~tj||||ƒD]a\}}}|jjr‚|jjtdƒ|j|ƒ|j|ƒ|dfƒn|||<q+Wn|rź|jjtdƒt|ƒƒn|S(sŚFind what files in added are really moved files.

    Any file named in removed that is at least similarity% similar to a file
    in added is seen as a rename.

    is)detected move of %s as %s (%d%% similar)
idsdetected move of %d files
(RtfindrenamesRtverboseR(Rtreltlen(	RR*R%R&RR"tsrctdsttscore((s0/usr/lib/python2.7/dist-packages/hgext/automv.pyRRs			*#N(t__doc__t
__future__Rtmercurial.i18nRt	mercurialRRRRRRRRRR(((s0/usr/lib/python2.7/dist-packages/hgext/automv.pyt<module>s.