Guest?
 
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
  • Created by   Dmytro Kryvenko
    13 months ago (09 Apr 2012 10:47)
  • Updated by   Alexander Kitaev
    13 months ago (09 Apr 2012 11:17)
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Hi,

I try to get date of the last revision in local working copy:
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
Comments (2)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Dmytro Kryvenko
  Dmytro Kryvenko
09 Apr 2012 10:47
13 months ago
Version is 1.7.4-rc5
Alexander Kitaev
  Alexander Kitaev
09 Apr 2012 11:17
13 months ago
Hello,

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.
Related Changes
Resolved Date
13 months ago (09 Apr 2012 11:17)
State
OpenWon't fix
Apply Command

Command Preview: