Closed Bug 1600137 Opened 5 years ago Closed 4 years ago

moz-phab should warn if two revisions have the same patch id

Categories

(Conduit :: moz-phab, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mhentges, Assigned: mhentges)

Details

(Keywords: conduit-triaged)

Attachments

(1 file)

I performed an hg split for this patch, then was confused when only half my changes were showing up.

It turned out that when I hg split'd, I left the same phabricator patch ID for both commits. So, moz-phab simply updated that patch for each commit, overwriting the first commit with the second.

I think (?) it's always an erroneous if any of the commits being pushed have the same patch ID.

To reproduce

  1. Make a commit and send it with moz-phab
  2. Do an hg split and split it into two commits
  3. Use moz-phab to send both commits
  4. moz-phab will update the patch with the first commit, then overwrite the patch with the second commit

Proposed improvement

If any commits being pushed have the same patch ID, immediately warn the user and don't push any commits to Phabricator

This should raise an error.

Keywords: conduit-triaged
Priority: -- → P2
Assignee: nobody → mhentges
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: