jenkinsci / jenkinsci/subversion-plugin
[JENKINS-27480] Wrong revision when checking out by revision date
- Dominant language
- Java
- Stars
- 131
- Forks
- 275
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 6
Description
When checking out using a date revision specifier an older revision than the revision specified is checked out:
Running: General SCM
Updating https://server/svn/repo/trunk@{2015-03-17T15:46:04.558054Z} at revision '2015-03-17T16:46:04.558 +0100'
...
At revision 3320
Actually "
{2015-03-17T15:46:04.558054Z}
" points to revision 3321.
While the conversion to local time is OK, the subversion plug-in (or SVNKit) truncates the time resolution to milliseconds, whereas subversion supports microseconds. This results in an check out of an older revision than requested.
---
Originally reported by
gordin, imported from: Wrong revision when checking out by revision date
Raw content of original issue
When checking out using a date revision specifier an older revision than the revision specified is checked out:
Running: General SCM
Updating https://server/svn/repo/trunk@{2015-03-17T15:46:04.558054Z} at revision '2015-03-17T16:46:04.558 +0100'
...
At revision 3320Actually "
{2015-03-17T15:46:04.558054Z}" points to revision 3321.
While the conversion to local time is OK, the subversion plug-in (or SVNKit) truncates the time resolution to milliseconds, whereas subversion supports microseconds. This results in an check out of an older revision than requested.
environment
```
Windows Server 2012
Jenkins 1.580.3 LTS
Subversion Plug-in 2.5
VisualSVN Server 3.2.1
```
Contributor guide
Assessment
This issue has not been assessed yet.