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

Delete Program Source in component

Hi all,

I would like to ask how can we delete the program source in a component in team server? I found that the delete option is grey out when I try to do so. Thanks.

0 votes



5 answers

Permanent link
The details depend on what client you are using.
In the Eclipse client, you would just use the normal Eclipse refactoring
operations to delete the file that is under source control, which then
will appear as a deletion in the Pending Changes for that workspace.

Cheers,
Geoff

On 10/11/2011 12:23 AM, tszwun wrote:
Hi all,

I would like to ask how can we delete the program source in a
component in team server? I found that the delete option is grey out
when I try to do so. Thanks.

0 votes


Permanent link
The details depend on what client you are using.
In the Eclipse client, you would just use the normal Eclipse refactoring
operations to delete the file that is under source control, which then
will appear as a deletion in the Pending Changes for that workspace.

Cheers,
Geoff

On 10/11/2011 12:23 AM, tszwun wrote:
Hi all,

I would like to ask how can we delete the program source in a
component in team server? I found that the delete option is grey out
when I try to do so. Thanks.


Thanks for your reply. I have done the following testing and I suspected RTC has some mechanism for file recovery:

Test Case setup
Add source A into My repository workspace, create new baseline "File Added" and deliver
Import another source B and delete A in Navigator
In Pending Changes we can see +/- sign is shown for specifc sources
Click Check-in, source is changed in My repositary workspace and created new baseline "File Changed". We can see "one outgoing baseline" is shown in pending changes
Click deliver, source and baseline has been sync to server source control

Behavior in Server Source Control
Replace with baseline in server component and change to baseline "File Added", the baseline replaced and source A is shown
Replace with baseline in server component and change to baseline "File Changed", the baseline replaced and source B is shown

Behavior in My Repositary Workspace
Replace with baseline in My Repositary Workspace for "File changed", source B is shown in file explorer
Replace with baseline in My Repositary Workspace for "File Added", source A is shown in file explorer

Is that RTC will restore deleted file in server when we can restore the file by restoring baseline? Especially the strange case is when I delete the file, RTC prompt that the file will be deleted in file system. But after I restore the baseline in My Repositary Workspace it appear again. Can anyone please share some of your experience for it?

0 votes


Permanent link
Yes, you can restore a deleted file, by selecting the baseline that was
created before that file was deleted. Was this not what you expected?

Cheers
Geoff

On 10/11/2011 1:38 PM, tszwun wrote:
gmclemmwrote:
The details depend on what client you are using.
In the Eclipse client, you would just use the normal Eclipse
refactoring
operations to delete the file that is under source control, which
then
will appear as a deletion in the Pending Changes for that
workspace.

Cheers,
Geoff

On 10/11/2011 12:23 AM, tszwun wrote:
Hi all,

I would like to ask how can we delete the program source in a
component in team server? I found that the delete option is grey
out
when I try to do so. Thanks.


Thanks for your reply. I have done the following testing and I
suspected RTC has some mechanism for file recovery:

Test Case setup
Add source A into My repository workspace, create new baseline
"File Added" and deliver
Import another source B and delete A in Navigator
In Pending Changes we can see +/- sign is shown for specifc sources
Click Check-in, source is changed in My repositary workspace and
created new baseline "File Changed". We can see "one
outgoing baseline" is shown in pending changes
Click deliver, source and baseline has been sync to server source
control

Behavior in Server Source Control
Replace with baseline in server component and change to baseline
"File Added", the baseline replaced and source A is shown
Replace with baseline in server component and change to baseline
"File Changed", the baseline replaced and source B is
shown

Behavior in My Repositary Workspace
Replace with baseline in My Repositary Workspace for "File
changed", source B is shown in file explorer
Replace with baseline in My Repositary Workspace for "File
Added", source A is shown in file explorer

Is that RTC will restore deleted file in server when we can restore
the file by restoring baseline? Especially the strange case is when I
delete the file, RTC prompt that the file will be deleted in file
system. But after I restore the baseline in My Repositary Workspace
it appear again. Can anyone please share some of your experience for
it?

0 votes


Permanent link
Yes, you can restore a deleted file, by selecting the baseline that was
created before that file was deleted. Was this not what you expected?

Cheers
Geoff

On 10/11/2011 1:38 PM, tszwun wrote:
gmclemmwrote:
The details depend on what client you are using.
In the Eclipse client, you would just use the normal Eclipse
refactoring
operations to delete the file that is under source control, which
then
will appear as a deletion in the Pending Changes for that
workspace.

Cheers,
Geoff

On 10/11/2011 12:23 AM, tszwun wrote:
Hi all,

I would like to ask how can we delete the program source in a
component in team server? I found that the delete option is grey
out
when I try to do so. Thanks.


Thanks for your reply. I have done the following testing and I
suspected RTC has some mechanism for file recovery:

Test Case setup
Add source A into My repository workspace, create new baseline
"File Added" and deliver
Import another source B and delete A in Navigator
In Pending Changes we can see +/- sign is shown for specifc sources
Click Check-in, source is changed in My repositary workspace and
created new baseline "File Changed". We can see "one
outgoing baseline" is shown in pending changes
Click deliver, source and baseline has been sync to server source
control

Behavior in Server Source Control
Replace with baseline in server component and change to baseline
"File Added", the baseline replaced and source A is shown
Replace with baseline in server component and change to baseline
"File Changed", the baseline replaced and source B is
shown

Behavior in My Repositary Workspace
Replace with baseline in My Repositary Workspace for "File
changed", source B is shown in file explorer
Replace with baseline in My Repositary Workspace for "File
Added", source A is shown in file explorer

Is that RTC will restore deleted file in server when we can restore
the file by restoring baseline? Especially the strange case is when I
delete the file, RTC prompt that the file will be deleted in file
system. But after I restore the baseline in My Repositary Workspace
it appear again. Can anyone please share some of your experience for
it?


Thanks for your reply. I just wonder when doing baseline/snapshot in RTC will backup the whole component?

0 votes


Permanent link
Hi,

A snapshot uses existing baselines for components if available and creates baselines where needed. It references the baselines. A baseline references to the current change sets in a component. A baseline is no backup but references to all the changes that represent the state of all the files in the baseline. So baseline allows to recreate the files in the component to the state when the baseline was done. That includes files that might be deleted in the future but existed at the time the baseline was created. That is the task of a source code management system.

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

Question asked: Oct 11 '11, 12:03 a.m.

Question was seen: 5,814 times

Last updated: Oct 11 '11, 12:03 a.m.

Confirmation Cancel Confirm