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/trac/versioncontrol/__pycache__/ |
Upload File : |
o �k�`�L � @ s� d dl Zd dlZd dlmZmZ d dlmZ d dlm Z d dl T d dlmZ d dl mZmZ d dlmZ d d lmZmZmZmZmZ d d lmZmZmZ d dlmZmZmZm Z m!Z! d dl"m#Z#m$Z$m%Z% G d d� de&�Z'G dd� de&�Z(dS )� N)�IAdminCommandProvider�IAdminPanelProvider)�IEnvironmentSetupParticipant)� ListOption)�*)�IPermissionRequestor)�as_bool� is_path_below)�tag)�breakable_path�normalize_whitespace�print_table�printerr�printout)�_�ngettext�tag_)�DbRepositoryProvider�InvalidRepository�NoSuchChangeset�RepositoryManager� is_default)�Chrome� add_notice�add_warningc @ s� e Zd ZdZeeee� dd� Zdd� Z dd� Z dd � Zd d� Zdd � Z dd� Zdd� Zddd�Zddd�Zdd� Zdd� Zdd� Zdd� ZdS ) �VersionControlAdminz?trac-admin command provider for version control administration.c c sh � ddd| j | jfV ddd| j | jfV dddd | jfV d d d| j | jfV dd d | j | jfV d S )Nzchangeset addedz<repos> <rev> [rev] [...]z�Notify trac about changesets added to a repository This command should be called from a post-commit hook. It will trigger a cache update and notify components about the addition. zchangeset modifiedam Notify trac about changesets modified in a repository This command should be called from a post-revprop hook after revision properties like the commit message, author or date have been changed. It will trigger a cache update for the given revisions and notify components about the change. zrepository list� zList source repositorieszrepository resyncz <repos> [rev]a� Re-synchronize trac with repositories When [rev] is specified, only that revision is synchronized. Otherwise, the complete revision history is synchronized. Note that this operation can take a long time to complete. If synchronization gets interrupted, it can be resumed later using the `sync` command. <repos> must be the repository name, not the repository path. Use `list` to see a list of repository names and associated paths. To synchronize all repositories, specify "*" for <repos>. The default repository can be specified using "(default)". zrepository synca, Resume synchronization of repositories It works like `resync`, except that it doesn't clear the already synchronized changesets, so it's a better way to resume an interrupted `resync`. See `resync` help for detailed usage. )�_complete_repos�_do_changeset_added�_do_changeset_modified�_do_list� _do_resync�_do_sync��self� r% �;/usr/lib/python3/dist-packages/trac/versioncontrol/admin.py�get_admin_commands( s* ��� �� �z&VersionControlAdmin.get_admin_commandsc C s t | j�}dd� |�� D �S )Nc S s g | ]}|pd �qS )� (default)r% )�.0�reponamer% r% r&