[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-dev] Get list of files to commit

From: Mark Phippard <markphip_at_gmail.com>
Date: Sat, 4 Jun 2011 07:59:09 -0400

On Fri, Jun 3, 2011 at 10:48 PM, Tim <cool.msg_at_hotmail.com> wrote:
> How do I get the list of files that are changed since the last commit and that need to commit in my Eclipse plugin?

Do you mean programmatically?

If you have a working copy you would use the status API. This will
show locally modified items that are elligible to commit. There is
also a boolean on the API to contact the server. This will tell you
what changes are on the server that you do not have in your working
copy.

If you do not have a working copy, then you would need to run the log
API and pass it the last revision you were aware of as the from
revision and HEAD as the to revision. This would show all commits
between those two revisions.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2757652
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_subclipse.tigris.org].
Received on 2011-06-04 13:59:17 CEST

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.