| 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/mercurial/__pycache__/ |
Upload File : |
a
�+�b� � @ s� d dl mZ d dlZddlmZmZ ddlmZmZm Z ddd�Z
dd � Zd
d� ZG dd
� d
e
�ZG dd� de
�ZG dd� de
�ZdS )� )�absolute_importN� )�encoding�pycompat)�dateutil�procutil�
stringutilc s� � �fdd�}|dkr�z�� |�}W n ty6 Y nf0 |j|kr���|�}t�|d dd�D ]$}|d||d f d||f d� q^|||dko�|d d� �|d d
d�S )z{Open log file in append mode, with optional rotation
If maxsize > 0, the log file will be rotated up to maxfiles.
c s� z�� |� W nJ tyX } z2|jtjkrD� �d|t�|j�f � W Y d }~n
d }~0 0 z|rl��| |� W nL ty� } z4|jtjkr�� �d|| t�|j�f � W Y d }~n
d }~0 0 d S )Ns warning: cannot remove '%s': %s
s( warning: cannot rename '%s' to '%s': %s
) �unlink�OSError�errno�ENOENT�debugr Z
strtolocal�strerror�rename)�oldpath�newpath�err��ui�vfs� �;/usr/lib64/python3.9/site-packages/mercurial/loggingutil.py�rotate s&