Jump to content

More cm command line questions


ferdBerful

Recommended Posts

Questions about the command line program "cm"

    - Can labels be removed from an change set?

    - Is there a way to get a list of files in a repository under a directory?

    - Is a server path always the same as the path to the object from the
      root of the workspace?

 

    - Can I change the comment on a changeset with cm?
 

Link to comment
Share on other sites

    - Can labels be removed from an change set?

Yes, they can. You can use either the 'cm removelabel' command or the GUI.

 

    - Is there a way to get a list of files in a repository under a directory?

 

Use the 'cm ls' command with the --tree parameter. Like this, for instance:

cm ls /src/lib/foo --tree=br:/main/scm35681@myrepo@myserver:8087

The command above will print the contents of the /src/lib/foo directory as present in the latest changeset of branch /main/scm35681 in repository 'myrepo' at server 'myserver:8087'.

 

    - Is a server path always the same as the path to the object from the root of the workspace?

 

The server path identifies the object location in a given server tree. Workspaces download the server tree contents by default, but customizations can be applied (cloaked files, transformable workspaces, etc.).

 

    - Can I change the comment on a changeset with cm?

 

Unfortunately you can't. I'm afraid you'll need to use the GUI for that.

 

 

Link to comment
Share on other sites

Thank you.

 

RE: - Can labels be removed from an change set?

         Yes, they can. You can use either the 'cm removelabel' command or the GUI.

 

I am sorry . I don't think I was clear with my question. I'm asking if there is the

equivalent of rmattributereal for labels in cm.

 

Perhaps I'm not understanding how labels work.

 

My understanding is that a specific label  (like "myLabel") can be applied to

more that one change set or workspace path. Is that correct?

 

If not, then the answer to my question is as you say: 'cm removelabel' command

Link to comment
Share on other sites

Hi,

 

cm makelabel --> The command to create a label. There is an option to apply the label when creating it.

 

cm label --> You can apply the label to a specific changeset.

 

 

You can move the label to one changeset to others, you can apply different labels to the same changeset, but it's not possible to apply the same label to different changesets at the same time. 

 

Regards,

Carlos.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...