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

Re: svn annotate does not work because: "skipping binary file", but on non-binary file

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Wed, 8 Oct 2008 04:53:30 -0500

On Oct 8, 2008, at 03:34, Spiro Trikaliotis wrote:

> as I can show this problem with an open-source project, I will use
> that
> for demonstration.
>
> I have a text file (svn:mime-type=text/plain, svn:eol-style=native)
> and
> I want SVN to annotate it. However, I get the following output:
>
> $ LANG=C svn annotate
> http://vice-emu.svn.sourceforge.net/svnroot/vice-emu/trunk/vice/src/
> video.h
> Skipping binary file:
> 'http://vice-emu.svn.sourceforge.net/svnroot/vice-emu/trunk/vice/
> src/video.h'
>
> Obviously, this is not true; the file is not binary.
>
> I believe this might be related to the fact that the file once was a
> binary file (before r18717).
>
> Can you confirm this?

I do not know if that's the reason. But if it is:

> If yes: What can I do to prevent this? I do not want to completely
> loose
> the "svn annotate" option. Can I override this?
>
> No, I do not think of the --force option, which works. I want to
> permanently remove the need to do this.

If the --force option is not sufficient, and you want to permanently
fix it:

> I have thought about dumping the SVN, changing the properties of the
> files, and writing the dump into the SVN. However, as the dump is very
> large (the SVN repository was created by cvs2svn, which did not handle
> the "cvs import" in good way), this will take much time.
> Furthermore, I
> am not sure if it is easy to change the dump accordingly. So, I am
> asking if there is an easier way.

I cannot help with the fact that the dump will be large and will take
a long time to produce, and another long time to load back in, but
editing a dumpfile is not difficult if you use a tool written to do
that job. svndumptool is quite helpful for surgery like this; I just
did some to one of my own repositories. Take a look:

http://svn.borg.ch/svndumptool/

There's a new feature "apply-autoprops" in the not-yet-released
svndumptool 0.6 which I found quite helpful. You can build
svndumptool from trunk to get that feature.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-08 11:53:50 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.