jenkinsci / jenkinsci/subversion-plugin

[JENKINS-6561] Subversion plugin fails to checkout code to workspace if the repo has empty revisions

Open
#705 2 comments 0 reactions 0 assignees View on GitHub
component:subversion-plugin imported-jira-issue priority:major resolution:unresolved
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


  • status: Open
  • priority: Major
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 4
  • watchers: 5
  • imported: 20251212-090250

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 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

environment

```
Centos 5.2

Hudson 1.355

Subversion plugin 1.16
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.