Team API for setting SyncInfo [message #290712] |
Tue, 30 August 2005 10:03  |
Eclipse User |
|
|
|
Hi all,
I want to set the SyncInfo kind of a resource to SyncInfo.OUTGOING via the
Team API. Is that possible ? I only can find available methods to read it,
not set it (without writing a new subscriber).
Regards,
Sytze.
|
|
|
Re: Team API for setting SyncInfo [message #290751 is a reply to message #290712] |
Wed, 31 August 2005 09:15  |
Eclipse User |
|
|
|
Originally posted by: Michael_Valenta.oti.com
Sytze,
The only way to change the state of a SyncInfo is to perform an appropriate
team operation on the corresponding file. For instance, for file conflicts
in CVS, the CVS synchronize page offeres a Mark as Merged operation which
updated the file's sync info appropriately. How this is done (or whether it
is even possible) varies from repository to repository. Of course, if you
are using CVS then the SyncInfo is probably an instance of CVSSyncInfo so
you could just cast it and call makeOutgoing which performs the required
operation on the file's meta-data. This isn't API so there are no backwards
compatibility gaurantees but it will do what you want.
Michael
"Sytze van Koningsveld" <sytze.van.koningsveld@nl.compuware.com> wrote in
message news:5687e1162adc040cdc6380aaa99ee030$1@www.eclipse.org...
> Hi all,
>
> I want to set the SyncInfo kind of a resource to SyncInfo.OUTGOING via the
> Team API. Is that possible ? I only can find available methods to read it,
> not set it (without writing a new subscriber).
> Regards,
>
> Sytze.
>
|
|
|
Powered by
FUDForum. Page generated in 0.05181 seconds