Skip to content

Commit

Permalink
Bug 1682547 - Document how to merge two patches r=marco DONTBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Nov 11, 2021
1 parent 10b6c9d commit 782a596
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docs/contributing/stack_quickref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,27 @@ Visualize the stack
# Git
$ git log
Merge two patches
-----------------

It can happen that, instead of updating a patch, a new revision is
created on Phabricator. For this, merge the patches locally:

.. code-block:: shell
# Mercurial
# Mark the patch to be merged with "roll" (key: "r")
# or "fold" (key: "f")
$ hg histedit
# Git
# Replace "pick" by "squash" or "fixup"
$ git rebase -i
Then, push to Phabricator and abandon the old change.


Reorder the stack
-----------------

Expand Down Expand Up @@ -117,4 +138,4 @@ Reorganizing the stack in Phabricator

If you've changed the local stack by adding, removing or moving the commits around, you need to change the parent/child relation of the revisions in Phabricator.

`moz-phab reorg` command will compare the stack, display what will be changed and ask for permission before taking any action.
`moz-phab reorg` command will compare the stack, display what will be changed and ask for permission before taking any action.

0 comments on commit 782a596

Please sign in to comment.