Re: zero delta changes
"Martin Pool" <[email protected]> Thu, 8 Mar 2007 13:12:19 +1100
| Newsgroups | gmane.network.librsync.general |
|---|---|
| Message-ID | <[email protected]> |
On 08/03/07, Donovan Baarda <[email protected]> wrote: ]> > I need to know how I can detect a zero change delta ( ie a delta that > > signifies that no change is required) > > > > I am attaching some "zero change" deltas. > > A zero change delta consists of a "single copy" command. This command > includes a length, so you will get different "zero delta" files for > different length files. You also get a "single copy" command for a file > that has been truncated, so it's not that trivial to check if the single > copy command is really a "zero delta" or a truncation. If I recall correctly you can ask for statistics which will tell you there are no literal insertions, but this does not quite tell you that there are no deletions or rearrangements. Maybe you can get the whole-file hash from the header? -- Martin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV