Closed Bug 1886773 Opened 1 year ago Closed 9 months ago

When using a git repository, `moz-phab submit HASH` excludes the specified HASH

Categories

(Conduit :: moz-phab, defect)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: julienw, Assigned: julienw)

References

Details

Attachments

(1 file, 1 obsolete file)

moz-phab version (from moz-phab --version): 1.4.0
Python version (from python3 --version): 3.11.2
OS: Linux Debian Stable

Hi,

I noticed that moz-phab submit has a different behavior on git compared to hg, when specifying a revision as a parameter.

For example, imagine you want to submit just the last commit.
On hg:

$ moz-phab submit tip

But on git:

$ moz-phab submit HEAD
Failed to find any commits to submit

Indeed on git, it looks like this is exclusive. This works though:

$ moz-phab submit HEAD^

The same happens when using a range or a hash.

I'd be happy to fix it if you're open to a patch.

Assignee: nobody → felash
Status: NEW → ASSIGNED

Integration tests for git are broken, I need to understand how they work.

Julien, see my comment on https://phabricator.services.mozilla.com/D205331.

As an aside, I noticed you're using moz-phab 1.4.0. You should manually update to the latest version, 1.5.1, since that version fixes the auto-update mechanism. I sent a dev-platform announcement about this a while ago. :)

See Also: → 1504534

I think this ship has sailed now, we could revisit after the git migration but now doesn't seem like a good moment to change this. Also I don't find myself enough time to come back at it :-)
Closing!

Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → WONTFIX
Attachment #9392534 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: