You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ricardo Coelho <co...@gmail.com> on 2010/03/12 12:26:14 UTC
"Revision file lacks trailing newline" on a "small" project
Hi,
We have a SVN server on Solaris 8 with many repositories.
To migrate, I do dumps. But for one repository, I have a "Revision file
lacks trailing newline" error.
The server's version is 1.4.3.
Can someone help me ?
Thanks in advance
PS : Sorry for my english
Re: "Revision file lacks trailing newline" on a "small" project
Posted by Ricardo Coelho <co...@gmail.com>.
On Fri, Mar 12, 2010 at 22:18, Ryan Schmidt
<su...@ryandesign.com> wrote:
> On Mar 12, 2010, at 14:08, Johan Corveleyn wrote:
>
>> On Fri, Mar 12, 2010 at 1:26 PM, Ricardo Coelho wrote:
>>>
>>
>>> We have a SVN server on Solaris 8 with many repositories.
>>> To migrate, I do dumps. But for one repository, I have a "Revision file
>>> lacks trailing newline" error.
>>>
>>> The server's version is 1.4.3.
>>
>> Hm, svn 1.4 is actually not supported anymore (meaning there won't be
>> any 1.4.x releases anymore). Of course some people on this list may be
>> able to still help you, but I suggest that you upgrade your server as
>> soon as you can (but maybe that's what you're doing now actually).
>>
>> I don't really know what you can/should do with this error. But,
>> pragmatically, I'd try to simply add a trailing newline to that
>> particular revision file and see if it helps (of course make a backup
>> copy of that rev file first).
>>
>> If that doesn't help, maybe the tool fsfsverify can help fix the
>> revision file (it seems to be able to handle/fix some forms of rev
>> file corruption). Google will help you find it.
>
> I see no reason to assume just the newline is missing from the revision; most likely, other critical information is missing as well. Can you restore this revision from your backups?
>
>
Finally, I looked a bit the "revs" file, it was corrupted (cut ...).
Since it was a fork of an another repository i backuped this file from
the "original" repository.
Then, everything worked.
Sorry for disturbance
Re: "Revision file lacks trailing newline" on a "small" project
Posted by Ricardo Coelho <co...@gmail.com>.
On Fri, Mar 12, 2010 at 21:08, Johan Corveleyn <jc...@gmail.com> wrote:
> On Fri, Mar 12, 2010 at 1:26 PM, Ricardo Coelho <co...@gmail.com> wrote:
>> Hi,
>>
>> We have a SVN server on Solaris 8 with many repositories.
>> To migrate, I do dumps. But for one repository, I have a "Revision file
>> lacks trailing newline" error.
>>
>> The server's version is 1.4.3.
>
> Hm, svn 1.4 is actually not supported anymore (meaning there won't be
> any 1.4.x releases anymore). Of course some people on this list may be
> able to still help you, but I suggest that you upgrade your server as
> soon as you can (but maybe that's what you're doing now actually).
>
We are migrating to a shared server with backups. But the server still
a 1.4.x version.
> I don't really know what you can/should do with this error. But,
> pragmatically, I'd try to simply add a trailing newline to that
> particular revision file and see if it helps (of course make a backup
> copy of that rev file first).
>
> If that doesn't help, maybe the tool fsfsverify can help fix the
> revision file (it seems to be able to handle/fix some forms of rev
> file corruption). Google will help you find it.
>
> HTH,
> Johan
>
Finally, I looked a bit the "revs" file, it was corrupted (cut ...).
Since it was a fork of an another repository i backuped this file from
the "original" repository.
Then, everything worked.
Sorry for disturbance
Re: "Revision file lacks trailing newline" on a "small" project
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 12, 2010, at 14:08, Johan Corveleyn wrote:
> On Fri, Mar 12, 2010 at 1:26 PM, Ricardo Coelho wrote:
>>
>
>> We have a SVN server on Solaris 8 with many repositories.
>> To migrate, I do dumps. But for one repository, I have a "Revision file
>> lacks trailing newline" error.
>>
>> The server's version is 1.4.3.
>
> Hm, svn 1.4 is actually not supported anymore (meaning there won't be
> any 1.4.x releases anymore). Of course some people on this list may be
> able to still help you, but I suggest that you upgrade your server as
> soon as you can (but maybe that's what you're doing now actually).
>
> I don't really know what you can/should do with this error. But,
> pragmatically, I'd try to simply add a trailing newline to that
> particular revision file and see if it helps (of course make a backup
> copy of that rev file first).
>
> If that doesn't help, maybe the tool fsfsverify can help fix the
> revision file (it seems to be able to handle/fix some forms of rev
> file corruption). Google will help you find it.
I see no reason to assume just the newline is missing from the revision; most likely, other critical information is missing as well. Can you restore this revision from your backups?
Re: "Revision file lacks trailing newline" on a "small" project
Posted by Johan Corveleyn <jc...@gmail.com>.
On Fri, Mar 12, 2010 at 1:26 PM, Ricardo Coelho <co...@gmail.com> wrote:
> Hi,
>
> We have a SVN server on Solaris 8 with many repositories.
> To migrate, I do dumps. But for one repository, I have a "Revision file
> lacks trailing newline" error.
>
> The server's version is 1.4.3.
Hm, svn 1.4 is actually not supported anymore (meaning there won't be
any 1.4.x releases anymore). Of course some people on this list may be
able to still help you, but I suggest that you upgrade your server as
soon as you can (but maybe that's what you're doing now actually).
I don't really know what you can/should do with this error. But,
pragmatically, I'd try to simply add a trailing newline to that
particular revision file and see if it helps (of course make a backup
copy of that rev file first).
If that doesn't help, maybe the tool fsfsverify can help fix the
revision file (it seems to be able to handle/fix some forms of rev
file corruption). Google will help you find it.
HTH,
Johan