o �]Lb2 � @ sz d dl mZ d dlZddlmZ ddlmZmZmZ e� d�Z dd� Zd d � ZG dd� de �Zd d� ZG dd� de �ZdS )� )�absolute_importN� )�nullrev)�dagop�policy�pycompat�parsersc G s� t |t�s t|�}t|v rt� S t|�dkr|S dt|�>