Subgit SVN to Git Migration Issue fails by SVN Error E185001

Hi Support Team,
I am trying to migrate a legacy SVN DB into Git ( then Gitlab). I started with git-svn guide (then found Stack discussion about subgit) and switched to subgit.
The Repo contains single monolithic project with standart layout, has a lot of sub libraries and dependencies, particularly making a few GB’s.
I imported the original repo from the original copy to Visual SVN Server without a problem.
I created users to have read-write rights on the repo. Then I created authors file and tried to import by git-svn. Due to “Svndiff has backwards-sliding source views” error popping up after some time, import operation failed.
While I was checking for the error message I encountered the old “bad antivirus solution” issue. I disabled Windows defender and other protections temporarily then ran again. It didn’t help either.
Similar issues with this error messages have been reported but none seems resolved.
I switched to subgit. First configure (paths in config, users and passwd filed) and then run import.
I verified the source db, tested and failed, upgraded the format to latest, verified, tested and failed again. I excluded paths of the problematic library worldwind. I failed again. I tried to exclude tags and branches, It failed again.
It failed with the same error message. The final lines in the log message reads below.
Is there any solution for this issue using subgit?
Thanks and best regards

Log Excerpt:
[2020-06-23 15:42:21.999][subgit-import][1] SET_PATH ‘’ 3798 not empty depth=infinity
[2020-06-23 15:42:21.999][subgit-import][1] SET_PATH ‘trunk’ 3797 not empty depth=infinity
[2020-06-23 15:42:22.034][subgit-import][1] fetching: branch = refs/svn/root/trunk, revision = 3798, receivedFileCount=54479
[2020-06-23 15:42:22.039][subgit-import][1] sendCopyFrom=true

====
r3798
M trunk/gov.nasa.worldwind/doc/gov/nasa/worldwind/util/class-use/BufferWrapper.AbstractBufferWrapper.html

/** lots of lines having M and A here */

[2020-06-23 15:56:46.130][subgit-import][1] svn: E185001: Svndiff has backwards-sliding source views
com.syntevo.svngitkit.core.b.i: svn: E185001: Svndiff has backwards-sliding source views
at com.syntevo.svngitkit.core.b.i.a(SourceFile:29)
at com.syntevo.svngitkit.core.c.C.b(SourceFile:738)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:436)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:396)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:342)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:169)
at com.syntevo.svngitkit.core.c.O.c(SourceFile:43)
at com.syntevo.svngitkit.core.c.O.b(SourceFile:36)
at org.tmatesoft.translator.k.aj.a(SourceFile:1464)
at org.tmatesoft.translator.k.aj.c(SourceFile:997)
at org.tmatesoft.translator.k.aj.a(SourceFile:1020)
at org.tmatesoft.translator.k.aj.b(SourceFile:1078)
at org.tmatesoft.translator.k.aj.a(SourceFile:682)
at org.tmatesoft.translator.k.aj.a(SourceFile:651)
at org.tmatesoft.translator.k.d.g.a(SourceFile:244)
at org.tmatesoft.translator.k.d.f.d(SourceFile:47)
at org.tmatesoft.translator.a.I.b(SourceFile:136)
at org.tmatesoft.translator.a.t.c(SourceFile:23)
at org.tmatesoft.translator.b.a(SourceFile:193)
at org.tmatesoft.translator.b.a(SourceFile:144)
at org.tmatesoft.translator.b.a(SourceFile:54)
at org.tmatesoft.translator.process.f.d(SourceFile:136)
at org.tmatesoft.translator.process.f.c(SourceFile:106)
at org.tmatesoft.translator.b.a(SourceFile:79)
at org.tmatesoft.translator.b.a(SourceFile:70)
at org.tmatesoft.translator.SubGit.main(SourceFile:10)
Caused by: org.tmatesoft.svn.core.SVNException: svn: E185001: Svndiff has backwards-sliding source views
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:760)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:910)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport(DAVConnection.java:363)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.runReport(DAVRepository.java:1361)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.update(DAVRepository.java:859)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:1261)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:1041)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:782)
at com.syntevo.svngitkit.core.c.C.b(SourceFile:700)
… 24 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: E185001: Svndiff has backwards-sliding source views
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
at org.tmatesoft.svn.core.internal.delta.SVNDeltaReader.nextWindow(SVNDeltaReader.java:116)
at org.tmatesoft.svn.core.internal.io.dav.handlers.BasicDAVDeltaHandler.characters(BasicDAVDeltaHandler.java:97)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:547)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:455)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:142)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1214)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:644)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:898)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:863)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:220)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:451)
… 34 more
[2020-06-23 15:56:46.235][subgit-import][1] Restoring refs to reflect SVN state.
[2020-06-23 15:56:46.630][subgit-import][1] Refs were successfully updated
[2020-06-23 15:56:46.630][subgit-import][1] svn: E185001: Svndiff has backwards-sliding source views
org.tmatesoft.translator.util.f: svn: E185001: Svndiff has backwards-sliding source views
at org.tmatesoft.translator.util.f.c(SourceFile:109)
at org.tmatesoft.translator.util.f.b(SourceFile:75)
at org.tmatesoft.translator.k.aj.c(SourceFile:1000)
at org.tmatesoft.translator.k.aj.a(SourceFile:1020)
at org.tmatesoft.translator.k.aj.b(SourceFile:1078)
at org.tmatesoft.translator.k.aj.a(SourceFile:682)
at org.tmatesoft.translator.k.aj.a(SourceFile:651)
at org.tmatesoft.translator.k.d.g.a(SourceFile:244)
at org.tmatesoft.translator.k.d.f.d(SourceFile:47)
at org.tmatesoft.translator.a.I.b(SourceFile:136)
at org.tmatesoft.translator.a.t.c(SourceFile:23)
at org.tmatesoft.translator.b.a(SourceFile:193)
at org.tmatesoft.translator.b.a(SourceFile:144)
at org.tmatesoft.translator.b.a(SourceFile:54)
at org.tmatesoft.translator.process.f.d(SourceFile:136)
at org.tmatesoft.translator.process.f.c(SourceFile:106)
at org.tmatesoft.translator.b.a(SourceFile:79)
at org.tmatesoft.translator.b.a(SourceFile:70)
at org.tmatesoft.translator.SubGit.main(SourceFile:10)
Caused by: com.syntevo.svngitkit.core.b.i: svn: E185001: Svndiff has backwards-sliding source views
at com.syntevo.svngitkit.core.b.i.a(SourceFile:29)
at com.syntevo.svngitkit.core.c.C.b(SourceFile:738)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:436)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:396)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:342)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:169)
at com.syntevo.svngitkit.core.c.O.c(SourceFile:43)
at com.syntevo.svngitkit.core.c.O.b(SourceFile:36)
at org.tmatesoft.translator.k.aj.a(SourceFile:1464)
at org.tmatesoft.translator.k.aj.c(SourceFile:997)
… 16 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: E185001: Svndiff has backwards-sliding source views
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:760)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:910)
at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.doReport(DAVConnection.java:363)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.runReport(DAVRepository.java:1361)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.update(DAVRepository.java:859)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:1261)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:1041)
at com.syntevo.svngitkit.core.c.C.a(SourceFile:782)
at com.syntevo.svngitkit.core.c.C.b(SourceFile:700)
… 24 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: E185001: Svndiff has backwards-sliding source views
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
at org.tmatesoft.svn.core.internal.delta.SVNDeltaReader.nextWindow(SVNDeltaReader.java:116)
at org.tmatesoft.svn.core.internal.io.dav.handlers.BasicDAVDeltaHandler.characters(BasicDAVDeltaHandler.java:97)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:547)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:455)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:142)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1214)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:644)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:898)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.readData(HTTPConnection.java:863)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:220)
at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:451)
… 34 more

Software Used :
subgit 3.3.9
Java JDK 8u251,
git 2.26.2.windows.1,
svn, version 1.14.0 (r1876290),
visual svn server 4.2.2
Microsoft Windows [Version 10.0.19041.329]

Hi,

we are investigating what this issue can be caused by. Meanwhile, could you please advise how did you imported the repository to Visual SVN? Did you use SVN dump/load or some other approach? Have you tried to verify the repository by ‘svn verify’? Which protocol do you use to access the SVN repository? Are the SVN repository and SubGit on the same machine? If yes, have you tried to use file:// protocol to access the SVN repo?

Hi Ildar,
I imported the repo using Visual SVN GUI, “import existing repository”. The repo directory was sitting on the file system, VSVNS imported 15K+ revisions without any problem. I verified the repo using GUI “All Tasks” > “Verify Repository”. I also tried "svnadmin verify " from console. It ran without error. I was using repo with web url: https://localhost/svn/reponame. Yes SVN repository was located in the same machine with subgit but I didn’t try file:// since I was unsure about it. I tried file:// and subgit and it worked:
SubGit version 3.3.9 (‘Bobique’) build #4351
Translating Subversion revisions to Git commits…
Subversion revisions translated: 15148.
Total time: 10712 seconds.
IMPORT SUCCESSFUL
Subgit imported all the svn repo content into git format with 15K+ revisions, 80+ tags, 15 branches spanning on nearly 10 years of operation. It worked really fine.
Thanks and best regards


O.

Hi Onur,

thank you for letting us know, glad to know it worked!

1 Like