Highlighted
Absent Member.
Absent Member.
949 views

Revision labels copy

Jump to solution

Hi Anil,

Would there be an easy way to duplicate revision labels between different views in same project?

Thanks,

Ed

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Hi Ed,

You can do that through the cross platform client.

first open the target view

On the View Menu, pick the Labels context menu item,

go to the Revision Label TAB

click on NEW, and check copy from another label

then browse to the revision label you want to copy from its source (wherever that may be in the view hierarchy)

you can also use the 'merge-label' command through the command line (see the description below)

take care

anil

Merge Label: merge-label

The merge-label command creates a new label (if it does not already exist) in the target view, copying the properties of the source label from the source view.

Once the label has been created, the command finds the items in the source view attached to the source label identifies the set of items in the target view that need to be attached to the target label attaches them at the tip and then moves them back to the revision at which the items were attached in the source.

Syntax

The syntax for this command is:

merge-label -sourceview "[project name/]view name"

-lbl "label name" {-type typeName}

-p "user:password@host:port/project/view"

While this command supports both view and revision labels, it is more useful for view labels (which are not supported through the StarTeam Cross-Platform Client ), unlike (cross-project) Revision Label copy, which is.

This command supports attaching labels both to items that have been shared across (in-project) views as well as to items that have been moved across projects.

View solution in original post

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Hi Ed,

You can do that through the cross platform client.

first open the target view

On the View Menu, pick the Labels context menu item,

go to the Revision Label TAB

click on NEW, and check copy from another label

then browse to the revision label you want to copy from its source (wherever that may be in the view hierarchy)

you can also use the 'merge-label' command through the command line (see the description below)

take care

anil

Merge Label: merge-label

The merge-label command creates a new label (if it does not already exist) in the target view, copying the properties of the source label from the source view.

Once the label has been created, the command finds the items in the source view attached to the source label identifies the set of items in the target view that need to be attached to the target label attaches them at the tip and then moves them back to the revision at which the items were attached in the source.

Syntax

The syntax for this command is:

merge-label -sourceview "[project name/]view name"

-lbl "label name" {-type typeName}

-p "user:password@host:port/project/view"

While this command supports both view and revision labels, it is more useful for view labels (which are not supported through the StarTeam Cross-Platform Client ), unlike (cross-project) Revision Label copy, which is.

This command supports attaching labels both to items that have been shared across (in-project) views as well as to items that have been moved across projects.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.