Applying a patch from a diff in python (if possible)

Astan astan.chee at rhubarbfizz.com
Wed May 23 23:42:17 EDT 2012


On May 24, 1:24 pm, Astan <astan.c... at rhubarbfizz.com> wrote:
> Hi,
> I'm trying to synch up two databases that are very far from each other
> using diff and patch. Currently, what happens is a mysqldump on
> database A (which is linux) which is sent over to database B and over
> time the diff of this mysql is sent over to database B. The database B
> lives on a NAS server without any linux machines available (all of
> them are windows 7s) to apply the patch to the diff. I've been looking
> into the python diff modules and it seems that most can't deal with
> files (these .diff files are large and binary since the data in the
> database is all sorts of binary). Also I've had a look at the
> patch.exe program for windows which also complains about the file
> being binary (or something. i've tried all sorts of flags and they
> don't seem to work). Are there any patch modules out there that I'm
> missing? The diff_patch_match module doesn't seem to like the diffs
> with angle brackets
> Thanks for any help

Ignore me. I just figured out cygwin.



More information about the Python-list mailing list