Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 241899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:47:31+00:00 2026-05-11T20:47:31+00:00

I am trying to branch a file in ClearCase Remote Client. I have the

  • 0

I am trying to branch a file in ClearCase Remote Client.
I have the branch set up and the config spec is updated to handle the branch.
But I can’t find the option, and the googling isn’t helping much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:47:32+00:00Added an answer on May 11, 2026 at 8:47 pm

    The way I understand your question, it sounds like you want to somehow select a command from a Clearcase RC menu(s) and have the branch explicitly created(?)

    Clearcase has no explicit “Generate Branch for this File” command; you would want the “Checkout” command in this case. Branching is indirect and is a result of checking out a version of a file in a view that has a config spec with the ‘-mkbranch ‘ operation in it. I.e. the following config spec will create the dev_1.0_branch once I check it out (for any and all vobs and files):

    element * CHECKEDOUT
    element * .../dev_1.0_branch/LATEST
    element * /main/LATEST -mkbranch dev_1.0_branch
    

    The first line is standard for views in which you are doing development, line 2 will assure that I see any file that has a dev_1.0_branch (particularly important for the checkout+mkbranch to work as expected :-), and line 3 will select the latest version of any file that does not have a dev_1.0_branch and will create the branch if (and only if) the file version selected by that rule is checked out.

    Please let me know if any of the above sounds greek to you, particularly any of the config spec rules. Having worked with ClearCase for a long time, I assume and use a lot of its terminology and concepts as if it’s common knowledge :-P.

    One thing of note: if you checkout the file, then immediately uncheckout the file, you will leave an empty branch on that file (i.e. in the above you would have a file with a version such as: foo.c@@/main/dev_1.0_branch/0, but no /main/dev_1.0_branch/1 version). Many sites prefer to keep the version tree clean and remove empty branches (one can be found in this IBM Rational Technical article)

    Just to be clear, I’m familiar with ClearCase Base & ClearCase MultiSite, but have not worked with the Remote Client yet.

    — 2009-Jun-29 Update
    In response to Paul’s comment below, if you want to be selective in what files are branched, you can modify the “*” to be more specific. For example, if you want to only branch foo.c in the FOODEV VOB, but leave everything else on main:

    UNIX config spec:

    element * CHECKOUT 
    element * .../my_dev_branch/LATEST
    element /vobs/FOODEV/src/foo.c -mkbranch my_dev_branch 
    element * /main/LATEST
    

    (For windows, you would want to use Windows conventions. I.e. \FOODEV\src\foo.c).

    You can also select a directory and all elements below the directory (again UNIX config spec):

    element * CHECKOUT
    element * .../my_dev_branch/LATEST
    element /vobs/FOODEV/src/mycomponent/... -mkbranch my_dev_branch
    element * /main/LATEST
    

    The main page for config_spec (cleartool man config_spec from the command line on windows or unix) provides decent guidance in the “Pattern” section for how to write the element/version selector (2nd column).

    You can do a lot of complex version selection with the config specs. Please let me know if you would like more details or specifics.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to grab a file from an alternate git branch and
I'm trying to create a branch from a remote tag, but it seems there's
I'm trying to migrate my app to Heroku - I have a config file
I've been trying to merge my dev branch into the master branch but as
I am trying to create a new branch using the API, and have used
I am trying to find how to reference branch start commit from script. I
I have been trying to setup Symfony2 on Windows so that I can use
I'm trying to deploy to a slicehost slice using this config/deploy/production.rb file. I'm clueless
When trying to rebase a feature branch onto master, I get the following error:
I am trying to build the cilk branch from the branch downloaded form svn

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.