Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

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

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


astan.chee at rhubarbfizz

May 23, 2012, 8:24 PM

Post #1 of 2 (96 views)
Permalink
Applying a patch from a diff in python (if possible)

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
--
http://mail.python.org/mailman/listinfo/python-list


astan.chee at rhubarbfizz

May 23, 2012, 8:42 PM

Post #2 of 2 (96 views)
Permalink
Re: Applying a patch from a diff in python (if possible) [In reply to]

On May 24, 1:24 pm, Astan <astan.c...@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.
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.