o ö]Lbw ã@shdZddlmZddlmZddlmZmZmZm Z m Z dZ dd„Z dd „Z d d „Zd d „Zdd„ZdS)zŒbeautify log -G output by using Unicode characters (EXPERIMENTAL) A terminal with UTF-8 support and monospace narrow text are required. é)Úabsolute_import)Ú_)ÚencodingÚ extensionsÚgraphmodÚpycompatÚ templatekwsships-with-hg-corecCs€|dkrdS|dkr dS|dkrdS|dkrdS|d krd S|d kr$d S|d kr>|dkr2|dks2dS|dkr<|dksWsz%outputprettygraph..)Úzip)r)ÚuiÚgraphr*r+ÚedgesÚtextrrrÚoutputprettygraphUs r6cCsf| d¡rdStjdkr| tdƒ¡dSdtjvr#| tdƒ¡dSt tdt¡t t dt ¡dS)NsgraphsUTF-8s4beautifygraph: unsupported encoding, UTF-8 required ÚAsMbeautifygraph: unsupported terminal settings, monospace narrow text required s outputgraphs getgraphnode) ÚplainrÚwarnrÚ_widerÚ wrapfunctionrr6rr-)r2rrrÚextsetup[s   ÿÿr<N)Ú__doc__Ú __future__rÚmercurial.i18nrÚ mercurialrrrrrÚ testedwithrr"r-r6r<rrrrÚs