how to accept a change set using APIs?
Hi,
I would like to use the APIs to accept a change set without doing any modifications to the repository workspace (only update the local workspace). I found IWorkspaceConnection.accept(int flags, List incoming,IProgressMonitor monitor). But it will also accept the change set for the repository workspace, which is not what I want. I am wondering whether its possible to only accept the change set for the local workspace by updating the local files. Thanks in advance, Owen |
2 answers
Geoffrey Clemm (30.1k●3●30●35)
| answered Dec 24 '08, 12:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Accepting a change set into a file area without accepting it into the
corresponding repository workspace doesn't make sense ... the repository workspace is what contains the metadata about what your file area should contain. Perhaps you could explain what end-user result you are trying to achieve? Cheers, Geoff jingweno wrote: Hi, |
jingweno wrote:
Hi, I do not recommend this : you would need to be very careful as to how you call filesystem APIs (or implement your own file mirror). Even if you use AcceptFlags.PREFLIGHT, you need a workspace to do the accept calculation, and once your mirror and your repository workspace are out of sync, you will not be able to easily perform this logic without replicating a large portion of the Jazz SCM server. JohnC Jazz SCM Server |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.