ó Afc@s½dZddlZddlZddlZddlZddlZd„ZejddƒZidd6dd 6d d 6Z d „Z ejd ƒZ d„Z d„Z edkr¹eƒndS(s<Turn a pile of RCS log output into ChangeLog file entries. iÿÿÿÿNc Cstjd}tj|dƒ\}}d}x)|D]!\}}tdkr2|}q2q2Wtj}g}xft|ƒ}|sPng}x*t||ƒ} | s¡Pn|j| ƒqˆW|ri||t|ƒ)qiqiW|j ƒ|j ƒx|D]} t | |ƒqêWdS(Nisp:ts-p( tsystargvtgetopttptstdint getnextfilet getnextrevtappendtlentsorttreverset formatrev( targstoptstprefixtotatftallrevstfiletrevstrev((s0/usr/lib64/python2.7/Demo/pdist/makechangelog.pytmain s0       s"^date: ([0-9]+)/([0-9]+)/([0-9]+) s-([0-9]+):([0-9]+):([0-9]+); author: ([^ ;]+)s+Guido van Rossum tguidosJack Jansen tjacks!Sjoerd Mullender tsjoerdcCsh|\}}}}tj|ƒdkrdtjddddddƒ}tjdƒ}tj|ƒrpt|}nttj|ƒdddg}|dtj |ds&