You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jim Geist <ji...@rodentia.net> on 2004/10/24 21:13:51 UTC
Question about binary files
Hi -
I'm evaluating Subversion for use on a fairly large game project. One of the features that got me interested was the ability to send/store diffs for binary files as well as text files.
But when I tried checking in and changing a binary file, svn doesn't appear to send diffs. I checked in a large bitmap (~700k), then changed a very little data in the middle, then did a commit. Then I did a dump of those two revisions. The first, as expected, contains the whole 700k. But the second revision shows a change of the same size, even though it's apparent that the data is almost all identical. The size of the repository db directory was likewise increased by 700k.
Anyone have any ideas? I'm running the precompiled svn-1.1.0 for Windows on XP, for the moment just using a file: repository on the local machine.
Thanks!
-- Jim
Re: Question about binary files
Posted by John Szakmeister <jo...@szakmeister.net>.
Jim Geist wrote:
[snip]
>>Try using 'svnadmin dump --incremental'.
>>
>>-John
>>
>
>
> Doesn't change anything. The whole file still appears in the dump for both
> revisions.
Bah. Sorry... this is just how binary files are displayed in the dump
stream. You can also try 'svnadmin dump --deltas to actually see the
deltas'. However, what you're looking at won't make a whole lot of
sense, unless you understand the delta storage format. :-) You will at
least be able to see that the delta for the full text (the first
revision) is smaller than the second revision.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Question about binary files
Posted by Jim Geist <ji...@rodentia.net>.
----- Original Message -----
From: "John Szakmeister" <jo...@szakmeister.net>
To: "Jim Geist" <ji...@rodentia.net>
Cc: <us...@subversion.tigris.org>
Sent: Sunday, October 24, 2004 2:39 PM
Subject: Re: Question about binary files
> Jim Geist wrote:
> > Hi -
> >
> > I'm evaluating Subversion for use on a fairly large game project.
> > One of the features that got me interested was the ability to send/store
> > diffs for binary files as well as text files.
> >
> > But when I tried checking in and changing a binary file, svn doesn't
> > appear to send diffs. I checked in a large bitmap (~700k), then changed
> > a very little data in the middle, then did a commit. Then I did a dump
> > of those two revisions. The first, as expected, contains the whole 700k.
> > But the second revision shows a change of the same size, even though
> > it's apparent that the data is almost all identical. The size of the
> > repository db directory was likewise increased by 700k.
> >
> > Anyone have any ideas? I'm running the precompiled svn-1.1.0 for
> > Windows on XP, for the moment just using a file: repository on the local
> > machine.
>
> Try using 'svnadmin dump --incremental'.
>
> -John
>
Doesn't change anything. The whole file still appears in the dump for both
revisions.
-- Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Question about binary files
Posted by John Szakmeister <jo...@szakmeister.net>.
Jim Geist wrote:
> Hi -
>
> I'm evaluating Subversion for use on a fairly large game project.
> One of the features that got me interested was the ability to send/store
> diffs for binary files as well as text files.
>
> But when I tried checking in and changing a binary file, svn doesn't
> appear to send diffs. I checked in a large bitmap (~700k), then changed
> a very little data in the middle, then did a commit. Then I did a dump
> of those two revisions. The first, as expected, contains the whole 700k.
> But the second revision shows a change of the same size, even though
> it's apparent that the data is almost all identical. The size of the
> repository db directory was likewise increased by 700k.
>
> Anyone have any ideas? I'm running the precompiled svn-1.1.0 for
> Windows on XP, for the moment just using a file: repository on the local
> machine.
Try using 'svnadmin dump --incremental'.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Question about binary files
Posted by kf...@collab.net.
"Jim Geist" <ji...@rodentia.net> writes:
> But when I tried checking in and changing a binary file, svn
> doesn't appear to send diffs. I checked in a large bitmap
> (~700k), then changed a very little data in the middle, then did
> a commit. Then I did a dump of those two revisions. The first,
> as expected, contains the whole 700k. But the second revision
> shows a change of the same size, even though it's apparent that
> the data is almost all identical. The size of the repository db
> directory was likewise increased by 700k.
SVN dumpfiles show fulltexts by default, but *in the repository*,
these things are stored as deltas, don't worry. You can get 'svnadmin
dump' to use deltas instead by passing it the '--deltas' flag.
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org