[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: delta in SVN is reversible or not

From: Branko Čibej <brane_at_wandisco.com>
Date: Thu, 14 Mar 2013 00:43:24 +0100

On 14.03.2013 00:07, Bo Chen wrote:
> Can anyone help me make clear this question? In SVN, if I have two
> versions A and B. I compute a delta of B against A, i.e., I can
> recover B by A and this delta. My question is, can I recover A by
> using B and the same delta?

No. It's theoretically possible to reverse a delta, but to do that, you
must have both A and B available. This is because the representation of
the delta between A and B does not show content that was removed, only
content that was copied from a and new content added to B.

-- Brane

Branko Čibej
Director of Subversion | WANdisco | www.wandisco.com
Received on 2013-03-14 00:43:59 CET

This is an archived mail posted to the Subversion Dev mailing list.