Questions tagged [mercurial-queue]

Mercurial Queues is a standard extension of Mercurial DVCS that manages changeset patches.

Mercurial Queues is a standard extension of Mercurial DVCS that manages changeset patches. It works similar to quilt, but is integrated with Mercurial.

More information:

97 questions
4
votes
5 answers

Mercurial Patch Queue Use Cases

I use mercurial patches in the following cases:- When I need to pull from a remote repository and have outstanding uncommitted changes. Then I simply create a patch, qpop it, pull from the remote repository, and then import the patch again. When I…
user277465
4
votes
3 answers

mercurial: how to synchronize mq patches from a master repo as mq patches to a set of clone repos

I have to run a dozen of different build tests on a code base maintained in a mercurial repository. I don't want to run serially these tests on same repository because they modify a set of common files and I want to run them in parallel on different…
dim
  • 1,697
  • 2
  • 13
  • 21
4
votes
1 answer

How to rename a file using Mercurial Queues?

Mercurial Queues is about patches, and patches know nothing about file renames. Is this the reason why Mercurial Queues don't support file renames, or am I doing something wrong renaming the file? I have worked on a patch queue modifying just one…
Iodnas
  • 3,414
  • 24
  • 26
4
votes
1 answer

When doing qpush, can I get a merge tool instead of .rej files?

I've recently start using mq, which is a great way of working. One thing that annoys me slightly is that when I qpush back my patches after doing a pull and update, I end up with .rej files if there are conflicts. It would be nice if Mercurial…
torhu
  • 432
  • 4
  • 13
4
votes
1 answer

How do I prevent Mercurial patches from being pulled?

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…
Wayne Werner
  • 49,299
  • 29
  • 200
  • 290
3
votes
1 answer

Force mq to work only on drafts

Recently Mercurial added phases. Is this possible to restrict mq to work only on phase draft? It should show a warning when I try to strip public changeset.
seler
  • 8,803
  • 4
  • 41
  • 54
3
votes
1 answer

How to add hooks for Mercurial MQ commands?

I would like to setup hg hooks for some actions done by mq extension. For example when I do hg qnew I would like to use post-review to create a new review request in our reviewboard server. I would also like to make a hook that updates the diff if…
Nikola Borisov
  • 348
  • 1
  • 10
3
votes
3 answers

How to disable pretxncommit hooks with mercurial queues or histedit?

I have some pretxncommit hooks in my local mercurial repository, those hooks are used to check that the commit message includes a reference to a ticket and some other sanity checks. My problem is that when I try to use mercurial queues, commands…
Jaime Soriano
  • 7,309
  • 2
  • 33
  • 45
3
votes
2 answers

hg update --mq not working?

I am using: Mercurial Distributed SCM (version 1.9.1), and I've done the following: D:\code\mqtest>hg init D:\code\mqtest>hg qinit -c D:\code\mqtest>echo NonQueue > first D:\code\mqtest>hg st ? first D:\code\mqtest>hg add first D:\code\mqtest>hg…
Geo
  • 93,257
  • 117
  • 344
  • 520
3
votes
2 answers

Mercurial: qrefresh to edit several commit messages?

I've come across these questions: Incorrect Commit Message In Mercurial and Is qrefresh harmful. However, I'm still confused about my specific problem. I cloned a repository and have since made about 10 commits. Before pushing, I realized that I…
Faramir
  • 105
  • 4
3
votes
2 answers

disable hg qfinish without changeset message

I use mercurial queues and sometimes I forget to set my message with a hg qrefresh -m ... and forget to check before I run hg qfinish and I get the message patch MyPatch finalized without changeset message. Is there any way I can make qfinish abort…
Asa Ayers
  • 4,854
  • 6
  • 40
  • 57
3
votes
1 answer

How to show content of unapplied Mercurial queue patch?

From the hg command line interface, is there a way to show the content of an unapplied Mercurial queue patch without having to apply it or having to find the patch file manually in the corresponding queue patch folder from the .hgdirectory?
greydet
  • 5,509
  • 3
  • 31
  • 51
3
votes
1 answer

Why won't Hg let you push with patches applied?

I can't understand why Mercurial won't let me push when patches are applied. From my point of view, applied patches affect only the current workspace and pushing isn't influenced by the state of the current workspace. In other words, I would expect…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
3
votes
2 answers

Mercurial: Pull changes from remote repository without public phase (non-publishing server, "abort: can't rebase immutable changeset")

Background Mercurial now has Phases which are a great mechanism to keep people from altering history that should not be altered. When a changeset is pushed to remote repository it is made public and can no longer be rebased. This is normally a good…
3
votes
2 answers

Mercurial Queues - export a patch

I have a mercurial queue patch on my local machine that I need to share with a coworker that I'd prefer not to commit to an upstream repository. Is there a simple way that I can package that patch and share it with him?
George Mauer
  • 117,483
  • 131
  • 382
  • 612