Discussion:
Change svn:mergeinfo property on an old revision of the repository (history) which has an invalid syntax
Torsten Krah
2018-06-22 10:43:13 UTC
Permalink
Hi,

unfortunately trying to svnsync a repository i discovered that there is
an invalid revision in the repository having a wrong svn:mergeinfo
property, instead of

1280-1282 it has 1282-1280

"Commit rejected because mergeinfo on '/branch' is syntactically
invalid"

The client we're using t sync is version 1.9.7. The source server is
1.6.17.

What's the best way to fix only those broken revision? Is there some way
to fix this property in the history? Or is there some way to fix that on
the fly? Any suggestions welcome.

kind regards

Torsten
Johan Corveleyn
2018-06-22 12:32:40 UTC
Permalink
Post by Torsten Krah
Hi,
unfortunately trying to svnsync a repository i discovered that there is
an invalid revision in the repository having a wrong svn:mergeinfo
property, instead of
1280-1282 it has 1282-1280
"Commit rejected because mergeinfo on '/branch' is syntactically
invalid"
The client we're using t sync is version 1.9.7. The source server is
1.6.17.
What's the best way to fix only those broken revision? Is there some way
to fix this property in the history? Or is there some way to fix that on
the fly? Any suggestions welcome.
I'm not sure how this would have happened (perhaps by manually editing
/ setting the mergeinfo property by the person who made that commit?).

I don't have any experience with this kind of problem, but perhaps
this tool could help you:

https://github.com/jwiegley/svndumptool

It has several features for manipulating / fixing svn dump files.
--
Johan
Loading...