Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/mercurial/__pycache__/ |
Upload File : |
o �]Lb�+ � @ sp d dl mZ d dlZd dlZd dlZddlmZ ddlmZ dd� Z dd � Z d d� Zdd � ZG dd� de �ZdS )� )�absolute_importN� ��_)�encodingc G s d� dd� | D ��S )N� c s s � | ]}|r|V qd S �N� )�.0�sr r �4/usr/lib/python3/dist-packages/mercurial/progress.py� <genexpr> s � zspacejoin.<locals>.<genexpr>)�join)�argsr r r � spacejoin � r c C s* | j p| �d� o| �| j�p| �dd�S )N� progresss assume-tty)�quiet�plain�_isatty�ferr� configbool)�uir r r �shouldprint s �r c C s | dk r t d�| S | d }|dk r | |d 8 } t d�|| f S |d7 }|d }||d 8 }|dk r:t d�||f S |d7 }|d }||d 8 }|dk rTt d �||f S |d7 }|d }||d 8 }|dk rnt d�||f S |d7 }|d }||d 8 }t d�||f S )z�format a number of remaining seconds in human readable way This will properly display seconds, minutes, hours, days if needed�<