3
_A·fÄ  ã               @   sZ   d dl mZ d dlZd dlmZmZ d dlmZmZm	Z	 d dl
mZ G dd„ deeƒZdS )é    )Úprint_functionN)ÚCommandÚMirrorSafeCommand)ÚgitÚRepoSourceVersionÚ
user_agent)ÚHEADc               @   s(   e Zd ZdZdZdZdZdZdd„ ZdS )ÚVersionNFzDisplay the version of repoz
%prog
c             C   s¼   | j j}|j|jjƒ}tƒ }|jjtƒ}t	d| ƒ t	d|j
 ƒ tjd k	r|t	dtj ƒ t	dtj ƒ ||kr|t	d| ƒ t	dtj ƒ t	dtjƒ j ƒ t	dtj ƒ t	dtj ƒ d S )	Nzrepo version %sz       (from %s)zrepo launcher version %sz       (currently at %s)zrepo User-Agent %szgit %szgit User-Agent %sz	Python %s)ÚmanifestÚrepoProjectÚ	GetRemoteÚremoteÚnamer   Úbare_gitÚdescriber   ÚprintÚurlr	   Úwrapper_pathÚwrapper_versionr   Úrepor   Úversion_tupleÚfullÚsysÚversion)ÚselfÚoptÚargsÚrpÚremZsrc_verZrp_ver© r   úA/home/qytech/356xLinux510-101server/.repo/repo/subcmds/version.pyÚExecute"   s    
zVersion.Execute)	Ú__name__Ú
__module__Ú__qualname__r   r   ÚcommonÚhelpSummaryÚ	helpUsager!   r   r   r   r    r	      s   r	   )Ú
__future__r   r   Úcommandr   r   Úgit_commandr   r   r   Úgit_refsr   r	   r   r   r   r    Ú<module>   s
   