1

I submitted two revisions (1, 2) for Review in Mozilla's Phabricator instance. I was asked to amend the commit message for both the revisions. I did search for previous questions on this topic, like this one, but most of them work for amending a single (the most recent) commit.

I used TortoiseHG Workbench and used the "Commit" button and was able to amend the commit message for the latest (most recent) commit, which is marked as default/tip. But when I try the same procedure for the second revision, it just brings up the first revision again -

enter image description here

How do I amend the commit message for the other revision (marked red in the screenshot) as well? Additionally, how do I push both changes to Phabricator again, without creating new revisions? The last time I executed moz-phab, it created two entirely new revisions.

Manish Giri
  • 3,562
  • 8
  • 45
  • 81

1 Answers1

0

Yes Amend only changes the parent commit, and additionally it only works if the commit has no child revs.

You can use Amend to do this, but it requires a couple of rebases.

(assuming you have no uncommitted changes)

  1. First update to 538966
  2. Right click on 538995 -> Modify History -> Rebase.
  3. Update to 538952
  4. Use Amend.
  5. Right click on 538995 -> Modify History -> Rebase.
  6. Use Amend to change (538995) if you haven't alreayd.
Tom
  • 6,325
  • 4
  • 31
  • 55
  • 1. Commits **already pushed** 2. Even if Phabricator is non-publishing server (thus modify pushed csets is allowed), new push will create new head – Lazy Badger Jul 09 '20 at 07:09