6hQ FSrSSKJr SSKrSSKJr Sr"SS5rSrg) a:send ui.log() data to a subprocess (EXPERIMENTAL) This extension lets you specify a shell command per ui.log() event, sending all remaining arguments to as environment variables to that command. Positional arguments construct a log message, which is passed in the `MSG1` environment variables. Each keyword argument is set as a `OPT_UPPERCASE_KEY` variable (so the key is uppercased, and prefixed with `OPT_`). The original event name is passed in the `EVENT` environment variable, and the process ID of mercurial is given in `HGPID`. So given a call `ui.log('foo', 'bar %s ', 'baz', spam='eggs'), a script configured for the `foo` event can expect an environment with `MSG1=bar baz`, and `OPT_SPAM=eggs`. Scripts are configured in the `[logtoprocess]` section, each key an event name. For example:: [logtoprocess] commandexception = echo "$MSG1" > /var/log/mercurial_exceptions.log would log the warning message and traceback of any failed command dispatch. Scripts are run asynchronously as detached daemon processes; mercurial will not ensure that they exit cleanly. ) annotationsN)procutilsships-with-hg-corec*\rSrSrSrSrSrSrSrg) processlogger0zWMap log events to external commands Arguments are passed on as environment variables. cB[URS55UlgNs logtoprocess)dict configitems_scripts)selfuis 4/usr/lib/python3/dist-packages/hgext/logtoprocess.py__init__processlogger.__init__6sR^^O<= cJ[URRU55$)N)boolr get)r events rtrackedprocesslogger.tracked9sDMM%%e,--rc(URUnSn[U5U:aUSUS-nU[R"5US.nUR SUR 555 [ R"U5n[ R"XXSS9 g)Nis (truncated))sEVENTsHGPIDsMSG1c3P# UHupSUR5-U4v M g7f)sOPT_%sN)upper).0keyvalues r $processlogger.log..Ks% ?KY $e ,|s$&T)shell) r lenosgetpidupdateitemsr shellenviron runbgcommand) r rrmsgoptsscriptmaxmsgenvfullenvs rlogprocesslogger.log<su% s8f  gv,0Ciik   ?Czz|  '',fT:r)r N) __name__ __module__ __qualname____firstlineno____doc__rrr/__static_attributes__rrrr0s >.;rrc:URS[U55 gr ) setloggerr)rs r uipopulater:RsLL-"34r) r5 __future__rr#mercurial.utilsr testedwithrr:r7rrr>s,8# $ # ;;D5r