Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Is there a way to know files to be commited?
Is there a way to know files to be commited? [message #509591] Sat, 23 January 2010 12:51 Go to next message
Fabio Zadrozny is currently offline Fabio ZadroznyFriend
Messages: 26
Registered: July 2009
Location: Brazil
Junior Member
Hi,

I'd like to include in my plugin a search that'll only search the outgoing files. Is there some API I can use to find which files are those?

Thanks,

Fabio
Re: Is there a way to know files to be commited? [message #509769 is a reply to message #509591] Mon, 25 January 2010 10:47 Go to previous message
Igor Burilo is currently offline Igor BuriloFriend
Messages: 435
Registered: July 2009
Senior Member
Hello Fabio,

There's no Team API for doing it, but here's how you can do it by using
Subversive API:

see org.eclipse.team.svn.core.utility.FileUtility
public static IResource []getResourcesRecursive(IResource []roots,
IStateFilter filter, int depth);

where you can use following filter:
IStateFilter filter = new IStateFilter.OrStateFilter(new IStateFilter[]
{IStateFilter.SF_COMMITABLE, IStateFilter.SF_CONFLICTING,
IStateFilter.SF_TREE_CONFLICTING, IStateFilter.SF_NEW});

In Subversive we perform needed for you operation during commit, so you can
reference Subversive code as an example of how to do it:
see org.eclipse.team.svn.ui.action.local.CommitAction, especially
org.eclipse.team.svn.ui.utility.CommitActionUtility class which performs
manipulations with resources.

> Hi,
>
> I'd like to include in my plugin a search that'll only search the outgoing
> files. Is there some API I can use to find which files are those?
>
> Thanks,
>
> Fabio
Previous Topic:changing ssh to ssh quiet
Next Topic:svn ignore via subversive option grayed out
Goto Forum:
  


Current Time: Wed Apr 24 14:41:02 GMT 2024

Powered by FUDForum. Page generated in 0.03286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top