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

  • Home
  • SEARCH
  • 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 9132373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:18:05+00:00 2026-06-17T08:18:05+00:00

I have a project, which is using Mercurial, I work alone on it and

  • 0

I have a project, which is using Mercurial, I work alone on it and often I find myself in the same situation over and over: during working on something, I realize, that other changes should be fixed and committed before I finish my current work. So, I tried to create an “Anonymous branch”

hg update --check PREVIOUS_REVISION

but unfortunately, it doesn’t work with the uncommitted changes (and I really don’t want to commit unfinished work). So, every time, I copy directory with sources, revert to the previous revision, fix, commit, switch back to my working copy, pull the change and continue my work… But it takes too much time, so maybe there are better ways to do it and just with one copy of sources? Thank you.

P.S. Probably, it’s the same question as How do I put a bunch of uncommitted changes aside while working on something else but my idea is “Is it possible just to leave unfinished work in the default branch in ‘as is’ state and then work on it later, without loading external patch?” (anyway, feel free to close it if it’s a duplicate)

  • 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-06-17T08:18:06+00:00Added an answer on June 17, 2026 at 8:18 am

    Three ways to solve task of “intermitted work”

    • Using shelve extension: Save all current changes hg shelve --all, make needed independent changes in clean WC, commit, restore intermediate results of work, saved on step 1 hg unshelve
    • Using anonymous branch: commit “as is” your WC, hg up <REV> to previous commit, make “must be before” changes, commit, return to older head, merge heads, continue work
    • Using MQ extension: use MQ Tutorial as starting point, chapter One: “Mq for the impatient” (between qrefresh and qfinish will be pure commit in your case)

    I’ll prefer (and always use for different tasks) MQ

    Addition:

    For fans and admirers of “clean history” one possible change in anonymous branching workflow (avoiding merge)

    • hg commit -m "Unfinished work" (rev M)
    • hg up -r "tip^1"
    • …
    • hg commit -m "Base changes" (rev N)
    • hg rebase -r M -d N (linearize history)
    • hg up
    • …
    • hg commit --amend -m "Full dependent change"

    PS: I can’t see anything bad in reversed set of changeset, i.e write a = something(data) in CSET, and function something (int subject) {...} in CSET+1

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

Sidebar

Related Questions

I have a legacy project using Rails 2.3.5 but I can't find with which
I have C# project in which I am using Microsoft.SqlServer.Management.Smo, Microsoft.SqlServer.batchparser.dll and few other
I have just restarted a project in which I am using NHibernate. The project
I have a MVC3 ASP.NET Project in which I am using jQuery and KendoUI
I have a postgresql database and am using it for a project which handles
I have two project, one which generates some artifacts from a WSDL file using
I have developed a web project. Which is generating log file using log4j. But
I'm using Mercurial for development of quite a large C++ project which takes about
I have a project which using a a REST API. Here when Isend a
I have a project in vc++ which using standerd windows library and source file

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.