mercurialpatchmercurial-queue

Mercurial Patch Queue Use Cases


I use mercurial patches in the following cases:-

  1. 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.
  2. When I need to upload patches to reviewboards. I simply make a patch and upload it.

How else do you use Mercurial Patch Queues? I feel that its a very powerful Mercurial extension and that I am not using it to its fullest potential.


Solution

  • The Mercurial wiki has a good section on use cases:

    In summary:

    1. Saving the current state of the working copy so you can easily revert to it later on
    2. Preventing a "tangled working copy" - if you're halfway through a change and want to change something else
    3. Provide mutable, rearrangeable commits so you can get 'history' looking just right before pushing.