|
Project
|
SVNKit
|
|
Priority
|
Normal |
|
Type
|
Bug |
|
State
|
Won't fix |
|
Assignee
|
Alexander Kitaev |
|
Subsystem
|
Working Copy |
|
Affected versions
|
future |
|
Fix versions
|
No Fix versions |
|
Fixed in build
|
No Fixed in build
|
SVNClientManager client = SVNClientManager.newInstance();
SVNStatus status = client.getStatusClient().doStatus(new File("D:/Work/test/repo/"), false);
SVNRevision lastWorkingCopyRevision = status.getRevision();
System.out.println(lastWorkingCopyRevision.getDate()); // null
This is expected behavior, locally you may get revision number in which file or directory was last modified. To get last modification date (in repository) please status.getCommittedDate() method.
SVNRevision object may be a number, or a date or a symbolic revision with a special meaning (e.g. HEAD). Number revision will return null when asked for a date.