Closed Bug 1532433 Opened 5 years ago Closed 4 years ago

better support for submitting a single commit

Categories

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

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: froydnj, Assigned: zalun)

Details

(Keywords: conduit-triaged)

Attachments

(1 file)

I had a sequence of commits:

HEAD ----> x
           y
           z
           ...
central -> []

and I wanted to submit just x:

froydnj@hawkeye:~/src/gecko$ moz-phab submit --bug 1531577 HEAD
Failed to find any commits to submit

Um, OK, maybe moz-phab is confused. Maybe an explicit hash?

froydnj@hawkeye:~/src/gecko$ moz-phab submit --bug 1531577 49549e7
Failed to find any commits to submit

Oh, I have to actually form a single-commit range:

froydnj@hawkeye:~/src/gecko$ moz-phab submit --bug 1531577 768d366 HEAD
Submitting 1 commit:
...

which is quite unfriendly. moz-phab should be able to do the Right Thing with single commits; git-bz certainly could.

after much discussion the plan here is to add a --single <sha> switch to support specifying a single revision, and to improve the error message when no commits were found to guide people towards --single.

Keywords: conduit-triaged
Priority: -- → P3
Summary: better support for submitting a single commit not directly off of upstream → better support for submitting a single commit
Attachment #9122658 - Attachment description: Bug 1532433 - Submit single commits using a --single option r=glob,mhentges → Bug 1532433 - Submit single commits using a --single option r=glob!,mhentges
Attachment #9122658 - Attachment description: Bug 1532433 - Submit single commits using a --single option r=glob!,mhentges → Bug 1532433 - Submit single commits using a --single option r=mhentges,glob!
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: