Re: Reverse patching

Martin Pool <[email protected]> Fri, 4 Dec 2009 14:34:35 +1100
Newsgroups gmane.network.librsync.general
Message-ID <[email protected]>
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'. =A0If 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.

> 2) If I create a signature and then a delta for two identical files,
> will rdiff produce a delta of size 0? =A0If not, under which
> circumstances, if any in particular?

The delta will be logically zero (it will just say to copy the whole
file) but it will not be 0 bytes.
-- =

Martin <http://launchpad.net/~mbp/>

---------------------------------------------------------------------------=
---
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