File: //kunden/lib/python3/dist-packages/breezy/__pycache__/config.cpython-39.pyc
a
�*�^zJ � @ s d Z ddlmZ ddlZddlZddlZddlZddlmZ ee� d� ddl m
Z
mZmZm
Z
mZmZ ddlmZmZmZmZmZ dZdZd ZdZdZd ZdZdZd Zeded
ediZeeeed�Z eZ!eZ"eZ#d
Z$dZ%G dd� dej&�Z'G dd� dej&�Z(G dd� dej&�Z)G dd� dej&�Z*G dd� dej&�Z+G dd� dej&�Z,G dd� dej&�Z-G dd� dej&�Z.G dd � d ej&�Z/d!d"� Z0d#d$� Z1d%d&� Z2d'd(� Z3G d)d*� d*ej4�Z4G d+d,� d,e5�Z6G d-d.� d.e
j7�Z8e8� Z9G d/d0� d0e
j7�Z:e:� Z;G d1d2� d2e6�Z<G d3d4� d4e<�Z=G d5d6� d6e=�Z>d7d8� Z?G d9d:� d:e=�Z@G d;d<� d<e6�ZAd=d>� ZBd?d@� ZCG dAdB� dBe<�ZDeE� ZFG dCdD� dDe5�ZGG dEdF� dFejH�ZIeI� ZJG dGdH� dHe5�ZKG dIdJ� dJeK�ZLeJjMdKeLeLj dL� dKeJ_NG dMdN� dNeK�ZOeJjMdOeOeOj dL� G dPdQ� dQe5�ZPG dRdS� dSe5�ZQG dTdU� dUe5�ZRdVdW� ZSdXdY� ZTeUdZd[d\d]�ZVd^d_� ZWd`da� ZXej4i dbdcddde�ZYG dfdg� dgeR�ZZG dhdi� dieR�Z[e�\dj�Z]dkdl� Z^G dmdn� dnejH�Z_e_� Z`e`�MeRdodeSdpdqdr�� e`�MeZdsddtdu�� e`�MeRdvdweWdxdy�� e`�MeRdzdeSd{dy�� e`�MeRd|dd}du�� e`�MeRd~ddeSddy�� e`�ad�d�d�� e`�MeRd�d�eTdpd�dr�� e`�MeRd�dd�du�� e`�MeRd�dceSd�dy�� e`�MeRd�ee0d�dy�� e`�MeRd�d�dL�� e`�MeRd�d�dL�� e`�MeRd�ee1d�dy�� e`�MeRd�dceSd�dy�� e`�MeZd�g d�du�� e`�MeRd�d�d�du�� e`�MeRd�d�dL�� e`�MeRd�d�d�gejbd�d��� e`�MeRd�dd�du�� e`�MeRd�d�dL�� e`�MeRd�dceSd�dy�� e`�MeRd�d�d�du�� e`�ad�d�d�� e`�MeRd�d�dL�� e`�MeRd�dd�du�� e`�MeRd�dd�du�� e`�ad�d�d�� e`�MeRd�dd�du�� e`�MeRd�dd�du�� e`�MeRd�deSd�dy�� e`�MeRd�dceSd�dy�� e`�ad�d�d�� e`�ad�d�d�� e`�ad�d�d�� e`�MeRd�d�eTd�dy�� e`�MeRd�deSd�dy�� e`�MeRd�d�eXd�dy�� e`�MeRd�dd�gd�d̍� e`�MeRd�dd�du�� e`�MeRd�dd�du�� e`�MeRd�d�dL�� e`�MeZd�g d�du�� e`�MeRd�ddeSdpd�dr�� e`�ad�d�d١ e`�ad�d�dۡ G d�d݄ d�e5�Zce5� Zde5� ZeG d�d߄ d�ec�ZfG d�d� d�e5�ZgG d�d� d�eg�ZhG d�d� d�eg�ZiG d�d� d�ei�ZjG d�d� d�ej�ZkG d�d� d�ek�ZlG d�d� d�ek�ZmG d�d� d�ej�ZnG d�d� d�ek�ZoG d�d� d�e5�ZpG d�d�� d�ep�ZqG d�d�� d�ec�ZrG d�d�� d�ep�ZsG d�d�� d�ep�Zti ZuddavG d�d�� d�e5�ZwG d�d�� d�ew�ZxG �d �d� �dew�ZyG �d�d� �dew�ZzG �d�d� �dew�Z{G �d�d� �dew�Z|G �d�d � �d ew�Z}G �d
�d� �dew�Z~G �d�d
� �d
e
j�Z�e�H� Z�e�H� Z�dS ( a
Configuration that affects the behaviour of Breezy.
Currently this configuration resides in ~/.config/breezy/breezy.conf
and ~/.config/breezy/locations.conf, which is written to by brz.
If the first location doesn't exist, then brz falls back to reading
Bazaar configuration files in ~/.bazaar or ~/.config/bazaar.
In breezy.conf the following options may be set:
[DEFAULT]
editor=name-of-program
email=Your Name <your@email.address>
check_signatures=require|ignore|check-available(default)
create_signatures=always|never|when-required(default)
log_format=name-of-format
validate_signatures_in_log=true|false(default)
acceptable_keys=pattern1,pattern2
gpg_signing_key=amy@example.com
in locations.conf, you specify the url of a branch and options for it.
Wildcards may be used - * and ? as normal in shell completion. Options
set in both breezy.conf and locations.conf are overridden by the locations.conf
setting.
[/home/robertc/source]
recurse=False|True(default)
email= as above
check_signatures= as above
create_signatures= as above.
validate_signatures_in_log=as above
acceptable_keys=as above
explanation of options
----------------------
editor - this option sets the pop up editor to use during commits.
email - this option sets the user id brz will use when committing.
check_signatures - this option will control whether brz will require good gpg
signatures, ignore them, or check them if they are
present. Currently it is unused except that
check_signatures turns on create_signatures.
create_signatures - this option controls whether brz will always create
gpg signatures or not on commits. There is an unused
option which in future is expected to work if
branch settings require signatures.
log_format - this option sets the default log format. Possible values are
long, short, line, or a plugin can register new formats.
validate_signatures_in_log - show GPG signature validity in log output
acceptable_keys - comma separated list of key patterns acceptable for
verify-signatures command
In breezy.conf you can also define aliases in the ALIASES sections, example
[ALIASES]
lastlog=log --line -r-10..-1
ll=log --line -r-10..-1
h=help
up=pull
� )�absolute_importN� )�lazy_importa@
import base64
import errno
import fnmatch
import re
import stat
from breezy import (
atomicfile,
cmdline,
controldir,
debug,
directory_service,
lock,
lockdir,
mergetools,
osutils,
trace,
transport,
ui,
urlutils,
win32utils,
)
from breezy.i18n import gettext
)�commands�bedding�errors�hooks�
lazy_regex�registry)�binary_type�BytesIO�PY3�string_types� text_type� � norecurse�
appendpath)NZnoner r � � c @ s e Zd ZdZdd� ZdS )�OptionExpansionLoopz5Loop involving %(refs)r while expanding "%(string)s".c C s || _ d�|�| _d S )Nz->)�string�join�refs)�selfr r � r �//usr/lib/python3/dist-packages/breezy/config.py�__init__� s zOptionExpansionLoop.__init__N��__name__�
__module__�__qualname__Z_fmtr r r r r r � s r c @ s e Zd ZdZdd� ZdS )�ExpandingUnknownOptionz>Option "%(name)s" is not defined while expanding "%(string)s".c C s || _ || _d S �N)�namer )r r# r r r r r � s zExpandingUnknownOption.__init__Nr r r r r r! � s r! c @ s e Zd ZdZdd� ZdS )�IllegalOptionNamez!Option "%(name)s" is not allowed.c C s
|| _ d S r"