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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:40:56+00:00 2026-06-05T05:40:56+00:00

So far I haven’t been able to find a clear answer, though it’s possible

  • 0

So far I haven’t been able to find a clear answer, though it’s possible that the answer is “change your workflow”.

I’ve just started playing around with Mercurial’s patch queue and I can see some serious power in it. It seems pretty awesome. In my tests, I’ve discovered that if you have a patch queue in repo1, and you pull from repo2, you can do some bad things. For example:

  1. Create repos 1, and clone it.
  2. Enable the queue on repo1
  3. Make some commits and some patches on repo1
  4. Pull changes to repo2
  5. On repo1 un-apply(pop?) all your patches
  6. Pull changes to repo2

Now you’ll see two different branches – which makes sense from a certain viewpoint. However, since my patches aren’t a part of repo1‘s history (at least until they’re applied), it seems like there should be a way to tell mercurial that my patches are off-limits, and only provide what’s in the “official history”.

Is there a way to do this?

  • 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-05T05:40:57+00:00Added an answer on June 5, 2026 at 5:40 am

    Mercurial phases may be the answer to this.

    Starting with Mercurial v2.1, you can configure mq changesets to automatically be marked secret. secret changesets are ignored by incoming/pull and outgoing/push commands.

    To enable this behavior, you need to add the following to your config:

    [mq]
    secret = True
    

    Once enabled, it behaves as follows:

    $ hg qpush --all
    applying my-patch
    now at: my-patch
    
    $ hg phase -r .
    16873: secret
    
    $hg outgoing
    comparing with https://www.mercurial-scm.org/repo/hg
    searching for changes
    no changes found (ignored 1 secret changesets)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I haven't been able to find any documentation on Android's sync services, so far
So far I have not been able to find an answer, but I wanted
So far I haven't been able to find the specifications for the iPhone screenshots
I've been looking around, and so far haven't managed to find a good way
I've searched far and wide, but haven't found something that works... There HAS to
I've been reading about the HTML5 history API and so far, I haven't found
I've been using Webservices so long. But,so far up to what I know,I haven't
I've been trying to figure this out and so far haven't found a simple
I've searched for this but so far I haven't found the answer - I
I am just now beginning to research this, and so far haven't come up

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.