File: //usr/lib/python3/dist-packages/hgext/__pycache__/bookflow.cpython-310.pyc
o
�]Lb� � @ s� d Z ddlmZ ddlmZ ddlmZmZmZm Z m
Z
dZi Ze
�
e�Z
e
eddg� e
edd � e
ed
d� i Ze
�e�Zdd
� Zdd� Z ddd�Zdd� Zdd� Zddd�Zdd� Zdd� ZdS )a? implements bookmark-based branching (EXPERIMENTAL)
- Disables creation of new branches (config: enable_branches=False).
- Requires an active bookmark on commit (config: require_bookmark=True).
- Doesn't move the active bookmark on update, only on commit.
- Requires '--rev' for moving an existing bookmark.
- Protects special bookmarks (config: protect=@).
flow related commands
:hg book NAME: create a new bookmark
:hg book NAME -r REV: move bookmark to revision (fast-forward)
:hg up|co NAME: switch to bookmark
:hg push -B .: push active bookmark
� )�absolute_import)�_)� bookmarks�commands�error�
extensions� registrars bookflow� protect� @� require-bookmarkT� enable-branchesFc K sv |j j}|r+|| �td�v rt�td�| ��t||�s)tjtd�td�| d��d S | �tdd�r9t�td���d S )
Nr s'