It's all about the answers!

Ask a question

how to accept a change set using APIs?


0
1
Jingwen Ou (5610) | asked Dec 23 '08, 8:48 p.m.
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



permanent link
Geoffrey Clemm (30.1k33035) | 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,

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

permanent link
John Camelon (1.7k14) | answered Jan 04 '09, 7:38 p.m.
JAZZ DEVELOPER
jingweno wrote:
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


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


Register or to post 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.