Re: Reverse patching
Donovan Baarda <[email protected]> Fri, 04 Dec 2009 14:52:45 +1100
| Newsgroups | gmane.network.librsync.general |
|---|---|
| Organization | http://minkirri.apana.org.au/~abo/ |
| Message-ID | <[email protected]> |
On Fri, 2009-12-04 at 14:34 +1100, Martin Pool wrote: > 2009/12/4 Afsheen Ghorashy <[email protected]>: > > Hello, > > I'm trying to apply rdiff (a very impressive program, so far) to a > > certain situation and I have some questions about its use and functioning: > > 1) Is there anyway to 'reverse-patch'. If I produce a delta for file1 > > to file2, I know I can apply the delta to file1 to obtain file2; can I > > also apply the delta, in some way, to file2 to get file 1? (similar to > > "patch -R") > > No. The reason why makes it obvious... the patch includes any extra data found in file2 that is not found in file1... it does not include any data that is found in file1 that is not in file2. -- Donovan Baarda <[email protected]> http://minkirri.apana.org.au/~abo/ ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev