
    6hG                       S r SSKJr  SSKJr  SSKJrJrJrJ	r	J
r
  0 r\
R                  " \5      rSr\" S\R                  S   S   S	S	  V s/ s H  o S   S
:w  d  M  U PM     sn \R                  -   \" S5      \R                   S9S 5       rS r\" S/ \" S5      \R                   SS9S 5       rS rS rS rS rg	s  sn f )zcommands to interactively select changes for commit/qrefresh (DEPRECATED)

The feature provided by this extension has been moved into core Mercurial as
:hg:`commit --interactive`.    )annotations)_)cmdutilcommandserror
extensions	registrars   ships-with-hg-core   records	   commit|ci   N   interactives   hg record [OPTION]... [FILE]...)helpcategoryc                   U R                  5       (       d"  [        R                  " [        S5      S-  5      eSUS'   SS0nU R	                  US5         [
        R                  " X/UQ70 UD6sSSS5        $ ! , (       d  f       g= f)	a5  interactively select changes to commit

If a list of files is omitted, all changes reported by :hg:`status`
will be candidates for recording.

See :hg:`help dates` for a list of formats valid for -d/--date.

If using the text interface (see :hg:`help config`),
you will be prompted for whether to record changes to each
modified file, and for files with multiple changes, for each
change to use. For each query, the following responses are
possible::

  y - record this change
  n - skip this change
  e - edit this change manually

  s - skip remaining changes to this file
  f - record remaining changes to this file

  d - done, skip remaining changes and files
  a - record all changes to all remaining files
  q - quit, recording no changes

  ? - display help

This command is not available when committing a merge.s)   running non-interactively, use %s insteads   commitTinteractives   experimentals   crecordFr
   N)r   r   Abortr   configoverrider   commit)uirepopatsopts	overridess        ./usr/lib/python3/dist-packages/hgext/record.pyrecordr   !   sy    J >>kk:;iG
 	
 D.6I			9i	0r7$7$7 
1	0	0s   A77
Bc                   ^ US   (       d  U " X/UQ70 UD6$ [         R                  " S5      mU4S jn[        R                  " XUS S[        R                  /UQ70 UD6  g )Nr      mqc                ,   > TR                   " X40 UD6  g )N)refresh)r   r   r   r   mqs       r   
committomqqrefresh.<locals>.committomqW   s    
 	

2$t$    T)r   findr   dorecordrecordfilter)origfnr   r   r   r   r    r   s         @r   qrefreshr'   Q   sd    b....		B% 
*dD'*>*>AEIMr"      qrecord&   hg qrecord [OPTION]... PATCH [FILE]...T)r   	inferrepoc                $    [        SXU/UQ70 UD6$ )zjinteractively record a new patch

See :hg:`help qnew` & :hg:`help record` for more information and
usage.
   qnew_qrecord)r   r   patchr   r   s        r   qrecordr0   e   s     GRu<t<t<<r"   c           	       ^^  [         R                  " S5      mUR                  R                  T5        UU4S jnSS0nUR                  US5         [        R                  " U5        [        R                  " UUUU S[        R                  /UQ70 UD6  S S S 5        g ! [         a     [        R                  " [        S5      5      ef = f! , (       d  f       g = f)Nr   s   'mq' extension not loadedc                >   > SUS'   TR                   " XT/UQ70 UD6  g )NF	checkname)new)r   r   r   r   r   r/   s       r   r    _qrecord.<locals>.committomq}   s%    ![
r...r"   r   Fr
   )r   r#   KeyErrorr   r   r   r   checkpatchnamer   r   checkunfinishedr$   r%   )	
cmdsuggestr   r   r/   r   r   r    r   r   s	      `    @r   r.   r.   u   s    ;__U# 	GG5!/ /6I			9i	0%  		
 		
 		
 
1	0  ;kk!89::; 
1	0s   B AC*C	
Cc                R    US   (       a  [        S XU/UQ70 UD6$ U " XU/UQ70 UD6$ )Nr   r-   )r&   r   r   r/   argsr   s         r   qnewr<      s:    Mb===="E1D1D11r"   c                `    [         R                  " S5      n[        UR                  S   S   S S  [
        R                  -   [        S5      4[        S'   [        SUR                  [        [        S5      5        [        SUR                  [        [        S5      5        g ! [         a     g f = f)	Nr   r,   r   r)   r(   s    interactively record a new patchs   qrefreshs'   interactively select changes to refresh)r   r#   r6   r0   cmdtabler   
diffwsoptsr   _wrapcmdr<   r'   )r   r   s     r   uisetuprA      s    __U#
 	 	GQ"W%7%77	
34HZ Wbkk4+N)OP
	
45	  s   B   
B-,B-c                b    [         R                  " XU5      nUS   R                  SSS U45        g )Nr      ir   )r   wrapcommandappend)cmdtablewrapfnmsgentrys        r   r@   r@      s-    ""5v6E	!HOOT>456r"   )__doc__
__future__r   mercurial.i18nr   	mercurialr   r   r   r   r	   r>   command
testedwithrG   r?   CATEGORY_COMMITTINGr   r'   r0   r.   r<   rA   r@   )cs   0r   <module>rS      s   
 #   


H
%
 #
 	|,Q/2M21dn6LQ2M(),,%8%8P( 	/0,,==
62.7S Ns   B=
B=
