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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:34:26+00:00 2026-05-20T09:34:26+00:00

The go programming language has a page on code reviews using mq and it

  • 0

The go programming language has a page on code reviews using mq and it states: “Since pulling, pushing, updating and committing while mq patches are applied can damage your repository”.

I understand why pushing or updating could be an issue, but is pulling an issue?

If you have mq patches applied and you pull will your repository be damaged?

  • 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-20T09:34:27+00:00Added an answer on May 20, 2026 at 9:34 am

    It can certainly be an issue if you accidentally merge with the upstream changesets while you have MQ patches applied in your repository. Here’s a scenario I just tried out which seems to exhibit problems:

    • suppose in your clone, you push all of your patches with hg qpush -a
    • then you pull changesets from upstream with hg pull (but don’t hg update). this creates a new branch (hg heads shows the branch you’re on as qtip and the new branch you just pulled as tip)
    • as you’re hacking away, you decide to switch over to the new branch, and run hg update -C tip, but do so without popping your patches.
    • as you hack away some more, you decide to merge the branches with hg merge. Oops! You just merged in an MQ patch that was never qfinished.

    Since MQ works by creating and destroying history, the patch changesets look like normal parts of the history. However, since you “leap-frogged” over the applied patches and merged them with a non-patch changeset, you can no longer pop the patches off. In fact, running hg qpop will abort with a message saying:

    abort: popping would remove a revision not managed by this patch queue
    

    I generally just try to be careful and conscious about pulling or pushing when I’m working with a patch queue, but the hooks suggested by the go page provide a nice safeguard.

    Note that you can always rebase your patches on top of upstream changesets as well. See this page for a description of how to do that.

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

Sidebar

Related Questions

Has anyone worked with the programming language Church ? Can anyone recommend practical applications?
Has someone here ever had experience with the D programming language ? It seems
It has been said that C# can be regarded as a functional programming language,
I'm reading The C Programming Language (2nd ed.) and near the beginning, it has
Has anything useful come out of Intentional or Language Oriented Programming? This isn't a
Which programming language(s) were used to code Windows Vista?
It is really annoying that each programming language has its own vocabulary. For example,
Some people say that every programming language has its complexity budget which it can
I'm working on an experimental programming language that has global polymorphic type inference. I
What programming language has short and beautiful grammars (in EBNF)? Some languages are easer

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.