o ]LbJ@sdZddlmZddlmZddlmZmZmZm Z m Z iZ e e Z dZ e dddejd d d d Dejed e jd ddZddZe dgede jddddZddZddZddZddZd S) 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`.)absolute_import)_)cmdutilcommandserror extensions registrarsships-with-hg-corerecordcCsg|] }|ddkr|qS) interactive).0cr r ./usr/lib/python3/dist-packages/hgext/record.py $srs commit|cir Nshg record [OPTION]... [FILE]...) helpcategorycOst|s ttddd|d<ddi}||dtj||g|Ri|WdS1s3wYdS) a}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 insteadscommitT interactives experimentalscrecordFr N)rrAbortrconfigoverridercommit)uirepopatsopts overridesr r rrecord!s% $rcs^|ds|||g|Ri|Stdfdd}tj|||ddtjg|Ri|dS)Nrmqcsj||fi|dS)N)refreshrrrrmqr r committomqWszqrefresh..committomqT)rfindrdorecord recordfilter)origfnrrrrr"r r rqrefreshQs   r'qrecord&hg qrecord [OPTION]... PATCH [FILE]...T)r inferrepocOstd|||g|Ri|S)zvinteractively record a new patch See :hg:`help qnew` & :hg:`help record` for more information and usage. qnew_qrecord)rrpatchrrr r rqrecordes r/csztdWntyttdw|jfdd}ddi}||d t |t j ||||dt j g|Ri|WddS1sPwYdS)Nrs'mq' extension not loadedcs(d|d<j||g|Ri|dS)NF checkname)newrr!r.r rr"}s z_qrecord..committomqrFr ) rr#KeyErrorrrrr!checkpatchnamerrcheckunfinishedr$r%) cmdsuggestrrr.rrr"rr r2rr-us.   "r-cOs>|drtd|||g|Ri|S||||g|Ri|S)Nrr,)r&rrr.argsrr r rqnewsr8cCszztd}Wn tyYdSwt|jddddtjtdftd<td|jt tdtd|jt tddS) Nrr+r r)r(s interactively record a new patchsqrefreshs'interactively select changes to refresh) rr#r3r/cmdtabler diffwsoptsr_wrapcmdr8r')rr!r r ruisetups  r<cCs(t|||}|dddd|fdS)Nr ir )r wrapcommandappend)cmdtablewrapfnmsgentryr r rr;sr;)__doc__ __future__rmercurial.i18nr mercurialrrrrrr9command testedwithrAr:CATEGORY_COMMITTINGrr'r/r-r8r<r;r r r rs:    (