File: //proc/2/root/proc/3/cwd/usr/lib/python2.4/Tools/scripts/logmerge.pyc
mò
‚=5Dc @ sÈ d Z d k Z d k Z d k Z d k Z d k Z d d d Z d d d Z d „ Z d „ Z d d „ Z d
„ Z e
d j oA y e ƒ WqÄ e j
o# Z e i e i j o ‚ qÀ qÄ Xn d S( s¿ Consolidate a bunch of CVS or RCS logs read from stdin.
Input should be the output of a CVS or RCS logging command, e.g.
cvs log -rrelease14:
which dumps all log messages from release1.4 upwards (assuming that
release 1.4 was tagged with tag 'release14'). Note the trailing
colon!
This collects all the revision records and outputs them sorted by date
rather than by file, collapsing duplicate revision record, i.e.,
records with the same message for different files.
The -t option causes it to truncate (discard) the last revision log
entry; this is useful when using something like the above cvs log
command, which shows the revisions including the given tag, while you
probably want everything *since* that tag.
The -r option reverses the output (oldest first; the default is oldest
last).
The -b tag option restricts the output to *only* checkin messages
belonging to the given branch tag. The form -b HEAD restricts the
output to checkin messages belonging to the CVS head (trunk). (It
produces some output if tag is a non-branch tag, but this output is
not very useful.)
-h prints this message and exits.
XXX This code was created by reverse engineering CVS 1.9 and RCS 5.7
from their output.
Nt =iM s
t -i c
C s7 d } d } d } t i t i d d ƒ \ } } x| | D]t \ } } | d j o
d } q8 | d j o
d } q8 | d j o
| } q8 | d j o t GHt i d ƒ q8 q8 Wg } xQ t t i ƒ } | p Pn t | | ƒ } | o | d =n | | t | ƒ )q¹ W| i ƒ | p | i ƒ n t | ƒ d S(
s Main programi i s trb:hs -ts -rs -bs -hiÿÿÿÿN( t
truncate_lastt reverset Nonet brancht getoptt syst argvt optst argst ot at __doc__t exitt databaset
read_chunkt stdint chunkt digest_chunkt recordst lent sortt
format_output(
R R R R R R
R R R R ( ( t, /usr/lib/python2.4/Tools/scripts/logmerge.pyt main* s<