jenkinsci / jenkinsci/subversion-plugin
[JENKINS-6561] Subversion plugin fails to checkout code to workspace if the repo has empty revisions
- Dominant language
- Java
- Stars
- 131
- Forks
- 275
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 6
Description
Hi,
We created a new repo in subversion using a dump and svndumpfilter on an old repo.
The empty revisions were maintained as such for strategic reasons. The dump file had empty revisions marked with "This is an empty revision for padding" as log message and no author and no date.
However when we create a new hudson job with the new url, it fails to checkout with a 500 error
To repro:
svnadmin dump oldrepo | svndumpfilter include trunk/path > dump.old
create a new repo
svnadmin load newrepo < dump.old
Enter the new url in the hudson subversion repository url .
Fails to checkout with a 500 error.
Manual svn co works on the hudson server without any issues.
Is there a way to actually ignore revisions if they do not have a author and a date in the subversion plugin, while calculating the log?
Referred links
http://hudson.361315.n4.nabble.com/Can-t-seem-to-checkout-from-SVN-1-4-5-through-http-td384856.html
http://docs.codehaus.org/display/HAUSMATES/Could+not+access+revision+times ( Would not prefer doing this)
https://hudson.dev.java.net/svn/hudson/trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionChangeLogParser.java
https://hudson.dev.java.net/svn/hudson/trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionChangeLogSet.java
---
Originally reported by sathishsathyan, imported from: Subversion plugin fails to checkout code to workspace if the repo has empty revisions
Raw content of original issue
Hi,
We created a new repo in subversion using a dump and svndumpfilter on an old repo.
The empty revisions were maintained as such for strategic reasons. The dump file had empty revisions marked with "This is an empty revision for padding" as log message and no author and no date.
However when we create a new hudson job with the new url, it fails to checkout with a 500 errorTo repro:
svnadmin dump oldrepo | svndumpfilter include trunk/path > dump.old
create a new repo
svnadmin load newrepo < dump.oldEnter the new url in the hudson subversion repository url .
Fails to checkout with a 500 error.Manual svn co works on the hudson server without any issues.
Is there a way to actually ignore revisions if they do not have a author and a date in the subversion plugin, while calculating the log?
Referred links
http://hudson.361315.n4.nabble.com/Can-t-seem-to-checkout-from-SVN-1-4-5-through-http-td384856.html
http://docs.codehaus.org/display/HAUSMATES/Could+not+access+revision+times ( Would not prefer doing this)
https://hudson.dev.java.net/svn/hudson/trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionChangeLogParser.java
https://hudson.dev.java.net/svn/hudson/trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionChangeLogSet.java
environment
```
Centos 5.2
Hudson 1.355
Subversion plugin 1.16
```
Contributor guide
Assessment
This issue has not been assessed yet.