It's all about the answers!

Ask a question

2 repository workspaces loaded, change sets going into the wrong repository workspace.


Paul Callahan (20136) | asked Oct 14 '13, 6:39 p.m.
edited Oct 14 '13, 10:58 p.m.
 I have an eclipse workspace open with two RTC repository workspaces loaded, from two different streams sharing the same component, into different directories.

/home/me/workspace_repo1_streamA  (also the eclipse proj dir)
/home/me/workspace_repo2_streamB

I made some changes under the repo2, outside of eclipse.  I refreshed the sandboxes, and those changes are showing up under the pending changes for repo1.  Which really makes no sense.

I can't seem to drag the change sets between repos. 

Is there anyway I can get out of this predicament without backing up my changes, unloading repo1 and copying the changes back in?

One answer



permanent link
Geoffrey Clemm (30.0k23035) | answered Oct 14 '13, 9:34 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The first thing I'd do is checkin the Unresolved changes, so they are stored in the RTC repository, rather than just stored on disk.  (By "showing up in Pending Changes", I assume you meant in the "Unresolved" folder.)  Once you have a change set, you can "accept" it into a different repository workspace.
But to explain specifically what you are seeing, we'd need more information, such as:
Are these two workspaces in the same RTC repository, or different RTC repositories?
I assume the same component loaded into both sandboxes?  (If not, it wouldn't make sense to "drag the change sets" from one sandbox to the other).
Are there Eclipse projects in these components, and did you tell RTC to "load Eclipse projects" (so they show up in your project explorer), or did you tell it to just load the files into the sandbox without creating Eclipse projects for them?

Comments
Paul Callahan commented Oct 14 '13, 10:57 p.m.
Are these two workspaces in the same RTC repository, or different RTC repositories?

Same repository server, each workspace is from two streams, one stream based on the other's component, I think.  At least the components have the same name.

I assume the same component loaded into both sandboxes?
Yes, both workspaces are loaded, each workspace shows the same component name.
Are there Eclipse projects in these components,
I believe I ticked-off "create eclipse projects" for both.  But I only see one of the workspace's files.



Geoffrey Clemm commented Oct 15 '13, 1:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Eclipse will not let you import two projects with the same name ... so RTC will happily load both sandboxes on disk, but Eclipse would not be willing/able to load the same Eclipse project from two different locations on disk.   The next question is whether you are absolutely 100% positive that made your changes to the repo2 sandbox, and not to the repo1 sandbox?   In particular, if you double click on the changes in the Unresolved folder, and then compare what it tells you with what is on disk, does the Unresolved folder tell you that a repo1 file has some new content, when in fact it does not, and the corresponding file in repo2 has that content instead?

Your answer


Register or to post your answer.