3
_Af0                 @   s    d dl mZ G dd deZdS )    )PagedCommandc               @   s(   e Zd ZdZdZdZdd Zdd ZdS )	DiffTz,Show changes between commit and working treez
%prog [<project>...]

The -u option causes '%prog' to generate diff output with file paths
relative to the repository root, so the output can be applied
to the Unix 'patch' command.
c             C   s   |j dddddd d S )Nz-uz
--absoluteabsolute
store_truez)Paths are relative to the repository root)destactionhelp)
add_option)selfp r   >/home/qytech/356xLinux510-101server/.repo/repo/subcmds/diff.py_Options   s    zDiff._Optionsc             C   s,   d}x"| j |D ]}|j|jsd}qW |S )Nr      )GetProjectsPrintWorkTreeDiffr   )r
   optargsretprojectr   r   r   Execute$   s
    zDiff.ExecuteN)__name__
__module____qualname__commonhelpSummary	helpUsager   r   r   r   r   r   r      s
   r   N)commandr   r   r   r   r   r   <module>   s   