It's all about the answers!

Ask a question

Delete Program Source in component


Tsz Wun Chow (1122) | asked Oct 11 '11, 12:03 a.m.
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.

5 answers



permanent link
Ralph Schoon (63.1k33645) | answered Oct 13 '11, 9:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

permanent link
Tsz Wun Chow (1122) | answered Oct 12 '11, 11:29 p.m.
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?

permanent link
Geoffrey Clemm (30.1k33035) | answered Oct 12 '11, 12:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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?

permanent link
Tsz Wun Chow (1122) | answered Oct 11 '11, 1:34 p.m.
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?

permanent link
Geoffrey Clemm (30.1k33035) | answered Oct 11 '11, 11:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

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.