bzr branch
http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
|
0.9.5
by Aaron Bentley
Add mpdiff command for diffing multiple files to the commandline |
1 |
#!/usr/bin/env python2.4
|
2 |
import sys |
|
3 |
||
4 |
from multiparent import MultiParent |
|
5 |
||
6 |
text = open(sys.argv[1], 'rb').readlines() |
|
7 |
parents = [open(p, 'rb').readlines() for p in sys.argv[2:]] |
|
8 |
sys.stdout.writelines(MultiParent.from_lines(text, parents).to_patch()) |