403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
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