Closed Bug 1779081 Opened 2 years ago Closed 2 years ago

mercurial generates hunks on empty file mode changes

Categories

(Conduit :: moz-phab, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: grammar, Assigned: grammar)

Details

Attachments

(1 file)

while setting up integration tests for Bug 1766011 - Investigate other edge cases where an empty file diff generates hunks - discovered that when changing a file's mode moz-phab will generate hunks when using mercurial but not git

i believe the culprit is this line as it doesn't have the same condition to check for a file_size of 0 as the other _change_{} methods do

Assignee: nobody → grobertson
Status: NEW → RESOLVED
Closed: 2 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: