It's all about the answers!

Ask a question

What's the equlivalent of SVN "switch to another revisi


Marshall Schor (1012724) | asked May 05 '11, 7:13 a.m.
Frequently, (in our current processes, working with SVN) we find it useful to switch (parts of) a checked-out Eclipse Project to a previous or more recent revision/branch/tag/trunk. There is an SVN "switch" capability, which shows the revisions as well as other branches/tags/trunk available, and allows switching that folder (which could be a subfolder of the Eclipse project) to that other version.

I see in RTC you can examine and compare other versions and baselines, but I don't see how to look at other "branches" (e.g., versions from other streams) and don't see how to "load" those into your active sandbox, so that you can try running with pieces of other versions of code, etc. (useful for debugging).

Is this not supported/allowed?

-Marshall

3 answers



permanent link
Geoffrey Clemm (30.1k33035) | answered May 05 '11, 9:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
In RTC, you can independently select configurations at the component
level (either by selecting arbitrary baselines, or by dropping/adding
change sets from the history of that component in your workspace).

At a finer granularity, you would change your configuration by
adding/removing change-sets (you can think of change-sets as
"fine-grained branches). One way to find change-sets to add/remove, is
to look at the history of a particular file ... that will give you a
list of change-sets that you can remove from your configuration. In the
history view, you can select "show all in repository", which tells you
what change-sets you can add to your configuration to modify the version
of that file.

Cheers,
Geoff

On 5/5/2011 7:23 AM, marshallschor wrote:
Frequently, (in our current processes, working with SVN) we find it
useful to switch (parts of) a checked-out Eclipse Project to a
previous or more recent revision/branch/tag/trunk. There is an SVN
"switch" capability, which shows the revisions as well as
other branches/tags/trunk available, and allows switching that folder
(which could be a subfolder of the Eclipse project) to that other
version.

I see in RTC you can examine and compare other versions and baselines,
but I don't see how to look at other "branches" (e.g.,
versions from other streams) and don't see how to "load"
those into your active sandbox, so that you can try running with
pieces of other versions of code, etc. (useful for debugging).

Is this not supported/allowed?

-Marshall

permanent link
Marshall Schor (1012724) | answered May 05 '11, 10:23 a.m.
In RTC, you can independently select configurations at the component
level (either by selecting arbitrary baselines, or by dropping/adding
change sets from the history of that component in your workspace).

At a finer granularity, you would change your configuration by
adding/removing change-sets (you can think of change-sets as
"fine-grained branches). One way to find change-sets to add/remove, is
to look at the history of a particular file ... that will give you a
list of change-sets that you can remove from your configuration. In the
history view, you can select "show all in repository", which tells you
what change-sets you can add to your configuration to modify the version
of that file.

Cheers,
Geoff

Thanks. Doing this at the granularty of components would be too large I think. I tried doing the change-set approach.

I went to a project in my workspace/sandbox, right - clicked on a package folder (meaning to get the info about history for all items in that package, together), and found that "history" was not an available pick. It's only an available pick on files. Is this how it is supposed to work? (Because in SVN, we're used to doing operations on arbitrary aggregations by clicking on folders...)

The granularity of 1 file is too small for our typical use cases. Is there a way to use folder hierarchies (e.g., all files in a Java package) in these kinds of operations?

-Marshall

On 5/5/2011 7:23 AM, marshallschor wrote:
Frequently, (in our current processes, working with SVN) we find it
useful to switch (parts of) a checked-out Eclipse Project to a
previous or more recent revision/branch/tag/trunk. There is an SVN
"switch" capability, which shows the revisions as well as
other branches/tags/trunk available, and allows switching that folder
(which could be a subfolder of the Eclipse project) to that other
version.

I see in RTC you can examine and compare other versions and baselines,
but I don't see how to look at other "branches" (e.g.,
versions from other streams) and don't see how to "load"
those into your active sandbox, so that you can try running with
pieces of other versions of code, etc. (useful for debugging).

Is this not supported/allowed?

-Marshall

permanent link
Geoffrey Clemm (30.1k33035) | answered May 06 '11, 9:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This is work item 66832. It is marked as "high priority" but is
currently not scheduled for a release. Please feel free to add a
comment indicating your interest/support.

Cheers,
Geoff

On 5/5/2011 10:23 AM, marshallschor wrote:
I went to a project in my workspace/sandbox, right - clicked on a
package folder (meaning to get the info about history for all items
in that package, together), and found that "history" was
not an available pick. It's only an available pick on files. Is
this how it is supposed to work? (Because in SVN, we're used to
doing operations on arbitrary aggregations by clicking on
folders...)

The granularity of 1 file is too small for our typical use cases.
Is there a way to use folder hierarchies (e.g., all files in a Java
package) in these kinds of operations?

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.