File: //usr/lib/python2.7/dist-packages/mercurial/mdiff.pyc
ó
ÛXc @@ s( d d l m Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z m
Z
m Z m Z d „ Z
d e f d „ ƒ YZ e ƒ Z e d „ Z d
„ Z d d d d „ Z e d „ Z e d
„ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e j Z e j Z e j Z d S( i ( t absolute_importNi ( t _( t base85t bdifft errort mpatcht utilc C@ sb g | j d ƒ D] } | d ^ q } | r^ | d d k rI | j ƒ q^ | d d | d <n | S( s0 like str.splitlines, but only split on newlines.s
iÿÿÿÿ( t splitt pop( t textt lt lines( ( s3 /usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt
splitnewlines s &
t diffoptsc B@ ss e Z d Z i d d 6e d 6e d 6e d 6e d 6e d 6e d 6e d 6e d
6e d 6e d 6Z d
„ Z d „ Z RS( s context is the number of context lines
text treats all files as text
showfunc enables diff -p output
git enables the git extended patch format
nodates removes dates from diff headers
nobinary ignores binary files
noprefix disables the 'a/' and 'b/' prefixes (ignored in plain mode)
ignorews ignores all whitespace changes in the diff
ignorewsamount ignores changes in the amount of whitespace
ignoreblanklines ignores changes whose lines are all blank
upgrade generates git diffs to avoid data loss
i t contextR t showfunct gitt nodatest nobinaryt noprefixt ignorewst ignorewsamountt ignoreblanklinest upgradec K@ sŸ xR | j j ƒ D]A } | j | ƒ } | d k rA | j | } n t | | | ƒ q Wy t | j ƒ | _ Wn- t k
rš t j t
d ƒ | j ƒ ‚ n Xd S( Ns3 diff context lines count must be an integer, not %r( t defaultst keyst gett Nonet setattrt intR t
ValueErrorR t AbortR ( t selft optst kt v( ( s3 /usr/lib/python2.7/dist-packages/mercurial/mdiff.pyt __init__= s
c @ s6 t ‡ f d † ˆ j Dƒ ƒ } | j | ƒ t | S( Nc 3@ s$ | ] } | t ˆ | ƒ f Vq d S( N( t getattr( t .0R"