mercurial/mdiff.py
changeset 239 75840796e8e2
parent 184 697f05bfe976
child 241 afe895fcc0d0
equal deleted inserted replaced
238:3b92f8fe47ae 239:75840796e8e2
     1 #!/usr/bin/python
     1 # mdiff.py - diff and patch routines for mercurial
       
     2 #
       
     3 # Copyright 2005 Matt Mackall <mpm@selenic.com>
       
     4 #
       
     5 # This software may be used and distributed according to the terms
       
     6 # of the GNU General Public License, incorporated herein by reference.
       
     7 
     2 import difflib, struct, mmap
     8 import difflib, struct, mmap
     3 from mercurial.mpatch import *
     9 from mercurial.mpatch import *
     4 
    10 
     5 def unidiff(a, ad, b, bd, fn):
    11 def unidiff(a, ad, b, bd, fn):
     6     if not a and not b: return ""
    12     if not a and not b: return ""