You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Robert-Jean Denault <Ro...@telus.com> on 2011/10/25 19:24:29 UTC

Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

I am upgrading our SVN repository from version 1.6.3 (r38063) to version 1.7.0 (r1176462).

I am using svnadmin dump (1.6.3), and svnadmin load (1.7.0)  to upgrade the contents of the repository, and have run into the following issue.  The load operation fails with the following message

svnadmin: E125005: Invalid property value found in dumpstream; consider repairing the source or using --bypass-prop-validation while loading.
svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property

I can load the repository contents using the --bypass-prop-validation.  If I create a new  dump of this new version 1.7 repository, and attempt to reload it using version 1.7  of svnadmin I get the same error.

Regards,

Robert Denault.

Re: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Robert-Jean Denault wrote on Wed, Oct 26, 2011 at 16:27:52 -0400:
> Hello Stefan, Konstantin
> 
> I solved the problem by running a loop around svn pget, svn pset.
> 
> The svn pget returns clean log entries, so extraction the svn:log entries, and resetting them cleans them up.
> 
>   #!/bin/ksh
>   rev=1
>   repo=PATH_TO_REPO
>   URL=URL_TO_REPO
>   while [ $rev -lt `svnlook youngest $repo` ]
>   do
>    echo revision $rev
>    svn pget svn:log  --revprop -r $rev  $URL >/tmp/svn$$.log

For the record, those kind of scripts should usually use 'propget
--strict' --- but that's probably going to reverse the effect you're
trying to apply here.

>    svn pset  svn:log  --revprop -r $rev --file /tmp/svn$$.log  $URL
>    let rev=rev+1

If you change this line to:
rev=`expr $rev + 1`

The script will be a valid #!/bin/sh script.

>   done
> 
> Thanks for your help,
> 
> Robert Denault
> 
> -----Message d'origine-----
> De : Stefan Sperling [mailto:stsp@elego.de] 
> Envoyé : October 26, 2011 10:13 AM
> À : Robert-Jean Denault
> Cc : Konstantin Kolinko; users@subversion.apache.org
> Objet : Re: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)
> 
> On Wed, Oct 26, 2011 at 09:28:39AM -0400, Robert-Jean Denault wrote:
> > Hello Stefan,
> > 
> > The properties were set during commits with Tortoise SVN and SubClipse.
> 
> It's possible that subclipse clients didn't properly encode log message
> data sent to the server.
> 
> BTW, another trick to fix the issue is to copy the repository using
> svnsync. As of Subversion 1.6.3 (which is fairly old), svnsync normalizes
> all svn:* properties to LF line-endings automatically.

RE: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

Posted by Robert-Jean Denault <Ro...@telus.com>.
Hello Stefan, Konstantin

I solved the problem by running a loop around svn pget, svn pset.

The svn pget returns clean log entries, so extraction the svn:log entries, and resetting them cleans them up.

  #!/bin/ksh
  rev=1
  repo=PATH_TO_REPO
  URL=URL_TO_REPO
  while [ $rev -lt `svnlook youngest $repo` ]
  do
   echo revision $rev
   svn pget svn:log  --revprop -r $rev  $URL >/tmp/svn$$.log
   svn pset  svn:log  --revprop -r $rev --file /tmp/svn$$.log  $URL
   let rev=rev+1
  done

Thanks for your help,

Robert Denault

-----Message d'origine-----
De : Stefan Sperling [mailto:stsp@elego.de] 
Envoyé : October 26, 2011 10:13 AM
À : Robert-Jean Denault
Cc : Konstantin Kolinko; users@subversion.apache.org
Objet : Re: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

On Wed, Oct 26, 2011 at 09:28:39AM -0400, Robert-Jean Denault wrote:
> Hello Stefan,
> 
> The properties were set during commits with Tortoise SVN and SubClipse.

It's possible that subclipse clients didn't properly encode log message
data sent to the server.

BTW, another trick to fix the issue is to copy the repository using
svnsync. As of Subversion 1.6.3 (which is fairly old), svnsync normalizes
all svn:* properties to LF line-endings automatically.

Re: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

Posted by Stefan Sperling <st...@elego.de>.
On Wed, Oct 26, 2011 at 09:28:39AM -0400, Robert-Jean Denault wrote:
> Hello Stefan,
> 
> The properties were set during commits with Tortoise SVN and SubClipse.

It's possible that subclipse clients didn't properly encode log message
data sent to the server.

BTW, another trick to fix the issue is to copy the repository using
svnsync. As of Subversion 1.6.3 (which is fairly old), svnsync normalizes
all svn:* properties to LF line-endings automatically.

RE: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

Posted by Robert-Jean Denault <Ro...@telus.com>.
Hello Stefan,

The properties were set during commits with Tortoise SVN and SubClipse.

Robert Denault
Programmeur-analyste principal II/ Senior Programmer-Analyst II
TELUS Solutions en santé | avec l'expertise d'Emergis 
TELUS Health Solutions | backed by Emergis 
T : (450) 928 6000 x 3740
T : 1 (866) 363 7447 x 3740
robert.denault@telus.com  
telussante.com  telushealth.com 
 

Le présent courriel et tout document joint sont destinés uniquement à la personne ou à l'entité à qui il est adressé et peut contenir des renseignements confidentiels. Si vous n'êtes pas le destinataire visé, veuillez nous en informer sans délai et détruire le courriel et les documents ainsi que toute copie qui en aurait été faite. Merci. 
This email, including any attachments, is for the sole use of the intended recipient and may contain confidential information.  If you are not the intended recipient, please notify us by reply email or by telephone (collect if necessary) and destroy this email and any copies.  Thank you.
.


-----Message d'origine-----
De : Stefan Sperling [mailto:stsp@elego.de] 
Envoyé : October 26, 2011 6:16 AM
À : Robert-Jean Denault
Cc : Konstantin Kolinko; users@subversion.apache.org
Objet : Re: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

On Tue, Oct 25, 2011 at 04:19:27PM -0400, Robert-Jean Denault wrote:
> Hello Konstanti,
> 
> The repository has more than 30,000 revisions in it.  There are thousands of entries, that contain "non-LF" line endings.  The dump and load did not have this issue in version 1.6, this is new to 1.7.

The properties are invalid nontheless.
How did they get into the repository in the first place?

You might want to take a look at this tool:
http://svn.borg.ch/svndumptool/
The 'transform-revprop' subcommand can help you fix up invalid
svn:log revision properties.
See http://svn.borg.ch/svndumptool/0.6.1/README.txt

Re: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

Posted by Stefan Sperling <st...@elego.de>.
On Tue, Oct 25, 2011 at 04:19:27PM -0400, Robert-Jean Denault wrote:
> Hello Konstanti,
> 
> The repository has more than 30,000 revisions in it.  There are thousands of entries, that contain "non-LF" line endings.  The dump and load did not have this issue in version 1.6, this is new to 1.7.

The properties are invalid nontheless.
How did they get into the repository in the first place?

You might want to take a look at this tool:
http://svn.borg.ch/svndumptool/
The 'transform-revprop' subcommand can help you fix up invalid
svn:log revision properties.
See http://svn.borg.ch/svndumptool/0.6.1/README.txt

RE: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

Posted by Robert-Jean Denault <Ro...@telus.com>.
Hello Konstanti,

The repository has more than 30,000 revisions in it.  There are thousands of entries, that contain "non-LF" line endings.  The dump and load did not have this issue in version 1.6, this is new to 1.7.

Robert Denault
Programmeur-analyste principal II/ Senior Programmer-Analyst II
TELUS Solutions en santé | avec l'expertise d'Emergis 
TELUS Health Solutions | backed by Emergis 
T : (450) 928 6000 x 3740
T : 1 (866) 363 7447 x 3740
robert.denault@telus.com  
telussante.com  telushealth.com 
 

Le présent courriel et tout document joint sont destinés uniquement à la personne ou à l'entité à qui il est adressé et peut contenir des renseignements confidentiels. Si vous n'êtes pas le destinataire visé, veuillez nous en informer sans délai et détruire le courriel et les documents ainsi que toute copie qui en aurait été faite. Merci. 
This email, including any attachments, is for the sole use of the intended recipient and may contain confidential information.  If you are not the intended recipient, please notify us by reply email or by telephone (collect if necessary) and destroy this email and any copies.  Thank you.
.

-----Message d'origine-----
De : Konstantin Kolinko [mailto:knst.kolinko@gmail.com] 
Envoyé : October 25, 2011 2:36 PM
À : Robert-Jean Denault
Cc : users@subversion.apache.org
Objet : Re: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

2011/10/25 Robert-Jean Denault <Ro...@telus.com>
>
> I am upgrading our SVN repository from version 1.6.3 (r38063) to version 1.7.0 (r1176462).
>
>
>
> I am using svnadmin dump (1.6.3), and svnadmin load (1.7.0)  to upgrade the contents of the repository, and have run into the following issue.  The load operation fails with the following message
>
>
>
> svnadmin: E125005: Invalid property value found in dumpstream; consider repairing the source or using --bypass-prop-validation while loading.
>
> svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property
>
>
>
> I can load the repository contents using the --bypass-prop-validation.  If I create a new  dump of this new version 1.7 repository, and attempt to reload it using version 1.7  of svnadmin I get the same error.

I do not know whether anything can be done during dump/load time, but
note that svn:log is an unversioned property that stores commit
message for a revision, and you can change it at any time using

svn propset --revprop -r

(or svn propedit)


Note, that you need to create a pre-revprop-change hook to allow such changes.

Best regards,
Konstantin Kolinko

Re: Error during svnadmin load (svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property)

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/10/25 Robert-Jean Denault <Ro...@telus.com>
>
> I am upgrading our SVN repository from version 1.6.3 (r38063) to version 1.7.0 (r1176462).
>
>
>
> I am using svnadmin dump (1.6.3), and svnadmin load (1.7.0)  to upgrade the contents of the repository, and have run into the following issue.  The load operation fails with the following message
>
>
>
> svnadmin: E125005: Invalid property value found in dumpstream; consider repairing the source or using --bypass-prop-validation while loading.
>
> svnadmin: E125005: Cannot accept non-LF line endings in 'svn:log' property
>
>
>
> I can load the repository contents using the --bypass-prop-validation.  If I create a new  dump of this new version 1.7 repository, and attempt to reload it using version 1.7  of svnadmin I get the same error.

I do not know whether anything can be done during dump/load time, but
note that svn:log is an unversioned property that stores commit
message for a revision, and you can change it at any time using

svn propset --revprop -r

(or svn propedit)


Note, that you need to create a pre-revprop-change hook to allow such changes.

Best regards,
Konstantin Kolinko