equal
deleted
inserted
replaced
53 for l in lines: |
53 for l in lines: |
54 (f, n) = l.split('\0') |
54 (f, n) = l.split('\0') |
55 mapping.rawset(f, n) |
55 mapping.rawset(f, n) |
56 self.mapcache = (node, mapping) |
56 self.mapcache = (node, mapping) |
57 return mapping |
57 return mapping |
58 |
|
59 def diff(self, a, b): |
|
60 return mdiff.textdiff(str(a), str(b)) |
|
61 |
58 |
62 def _search(self, m, s, lo=0, hi=None): |
59 def _search(self, m, s, lo=0, hi=None): |
63 '''return a tuple (start, end) that says where to find s within m. |
60 '''return a tuple (start, end) that says where to find s within m. |
64 |
61 |
65 If the string is found m[start:end] are the line containing |
62 If the string is found m[start:end] are the line containing |