Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

1

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,943

Question asked: Dec 23 '08, 8:48 p.m.

Question was seen: 6,769 times

Last updated: Dec 23 '08, 8:48 p.m.

Confirmation Cancel Confirm