equal
deleted
inserted
replaced
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 "" |