get file date from doExport or get single file from doCheckOut?

View: New views
2 Messages — Rating Filter:   Alert me  

get file date from doExport or get single file from doCheckOut?

by FedExJosh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I need to get a single file.  So, I'm using doExport().  However, I also need the commit date for that file.  

So, I either need a way to get a commit date with doExport() or a way to get a single file with doCheckOut().  Any ideas?

This has to be possible, since clients like SmartSVN and Tortoise allow you to checkout a single file, with a commit date.  I just can't find a way to do it with SVNKit.

Thanks for the help.

josh

Re: get file date from doExport or get single file from doCheckOut?

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Josh,

In what form would you like to get this date?

Time file was last committed is one of the file properties which you may
get with SVNWCClient.doInfo(...) method call, even without exporting the
file:

SVNInfo info = wcClient.doInfo(url, SVNRevision.HEAD, SVNRevision.HEAD);
Date date = info.getCommittedDate();

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!

FedExJosh wrote:

> I need to get a single file.  So, I'm using doExport().  However, I also need
> the commit date for that file.  
>
> So, I either need a way to get a commit date with doExport() or a way to get
> a single file with doCheckOut().  Any ideas?
>
> This has to be possible, since clients like SmartSVN and Tortoise allow you
> to checkout a single file, with a commit date.  I just can't find a way to
> do it with SVNKit.
>
> Thanks for the help.
>
> josh

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...