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 7522809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:37:18+00:00 2026-05-30T02:37:18+00:00

There are numerous discussions here that have addressed issues that seem related to this

  • 0

There are numerous discussions here that have addressed issues that seem related to this question, but nothing has really answered it directly. Basically, using Mercurial, I want to be able to work on multiple, independent tasks within the same project, at the same time.

For example, I’m simultaneously tasked with bugs X & Y. I work on X for a while until I hit a point where I need to put it on hold for a few days. Say I need input from someone else who is out of the office. So I want to move on to working on bug-Y. Clearly, one option is to just create a new clone of the stable repository. The problem is that requires a new working directory, new Eclipse project, yada-yada… I’d like to be able to keep one working copy.

With SVN I could create a new branch in the repository for each task and just switch my working copy between them. With ClearCase I could create a new activity for each one. In both cases, I could work on each task independently, in clean environment. Then when I’m done with a task, I can commit/push just that one to the central repo.

I’ve read about Hg named branches & bookmarks. I’m sure that somewhere in there there’s a solution to fit our workflow, but I’m not seeing it yet. Can someone explain the steps I can use to achieve this? Is it possible to create two heads in my local repository that I can just switch between? And then update/commit/push/pull those heads independently? In practice I might never even merge them locally, just push each one to our stable repo when it’s ready. Am I just thinking about this in entirely the wrong way? I’m very new to Hg (and DVCS’s in general) and trying to develop a workflow for it.

  • 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-30T02:37:19+00:00Added an answer on May 30, 2026 at 2:37 am

    The process you’re describing is really simple to implement with Mercurial, and there’s many way to do it.

    For example, you can use anonymous branches :

    1. Put a tag or a bookmark on the changeset you want to use as a start for both development.
    2. Develop your first bugfix, doing as many commit as you need
    3. When you want to start the other line of development, juste update to the previously saved changeset
    4. Develop the second bugfix, and commit the changes

    You just created two anonymous branches in your working copy starting at the decided changeset.

    You’re absolutely not limited to the number of anonymous branches or their starting point, you can even create new anonymous branches on your anonymous branches.

    In some cases, tools like TortoiseHG or the the GraphLog extension can really help you understanding which are the parents of each branches and what’s the best way of merging them back.

    Bookmarks are only a way to easily keep track of various changeset, you can put bookmark on each of your new heads. Depending on the version of Mercurial you’re using, the bookmark will “follow” each new commit you make in its particular branch or not.

    You can also use named branch to achieve the same purpose, but the problem is you can’t easily delete a named branch after it’s been created, the name will still be their.

    PS: this workflow, or something very similar is described in the following blog post : http://stevelosh.com/blog/2010/02/mercurial-workflows-branch-as-needed/

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

Sidebar

Related Questions

There has been numerous discussions related to storing images (or binary data) in the
This is directly inspired by this question . There are numerous references/statements that bitwise
Background: There are numerous PHP addons out there that have some nice ideas, but
There are nice SO question and answers about this issue, but these options didn't
There are numerous discussionsn on SO but I've tried suggestions without success. I have
There are numerous examples of how to do this in native Objective-C but I
There's numerous question and confusing docs on the subject, but no luck so far.
I know that some people have managed to do this, seeing as there are
I know that this question has been done to death at StackOverflow and that
There are numerous times you have an interface that accepts similar type arguments that

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.