File: //usr/lib/python3/dist-packages/hgext/__pycache__/journal.cpython-310.pyc
o
�]Lb�O � @ sz d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m
Z
mZ ddlm
Z
mZmZmZmZmZmZmZmZmZmZmZmZ ddlmZmZmZ i Ze�e�ZdZ dZ!d Z"d
Z#e"ej$iZ%dd� Z&d
d� Z'dd� Z(dd� Z)dd� Z*dd� Z+dd� Z,dd� Z-dd� Z.dd� Z/dd � Z0G d!d"� d"e�1d"d#��Z2G d$d%� d%e3�Z4d&Z5ed'd(d)gd*d+� ej6D � d,ej7d-�d.d/� �Z8dS )0z�track previous positions of bookmarks (EXPERIMENTAL)
This extension adds a new command: `hg journal`, which shows you where
bookmarks were previously located.
� )�absolute_importN)�_)�bin�hex)
� bookmarks�cmdutil�dispatch�encoding�error�
extensions�hg� localrepo�lock�
logcmdutil�pycompat� registrar�util)�dateutil�procutil�
stringutils ships-with-hg-cores bookmarks
wdirparentc C sN t �tdt� t �tjdt� t �tj dt
� t �tdt� t �tdt
� d S )Ns
runcommands _write� dirstates postshares copystore)r �wrapfunctionr �
runcommandr �bmstore�recordbookmarks�
wrapfilecacher
�localrepository�wrapdirstater �
wrappostshare�unsharejournal)�ui� r! �//usr/lib/python3/dist-packages/hgext/journal.py�extsetupF s �r# c C sH |� � r t|�|_|j�d� t�|d�\}}|r"t||� d S d S d S )N� namejournalr )�local�journalstorage�journal�_wlockfreeprefix�addr
�isfilecached�_setupdirstate)r �repo�dirstate�cachedr! r! r"