Closed Bug 1766011 Opened 3 years ago Closed 3 years ago

Investigate other edge cases where an empty file diff generates hunks

Categories

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

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zeid, Assigned: grammar)

References

Details

(Keywords: conduit-triaged, good-first-bug)

Attachments

(2 files, 4 obsolete files)

Test cases need to be added for both git and mercurial that cover:

  • adding empty files
  • deleting empty files
  • modifying empty files or their modes

In all above cases, Change.hunks should be an empty list.

Keywords: good-first-bug
Priority: -- → P3
Keywords: conduit-triaged
Assignee: nobody → glob
Assignee: glob → grobertson
Attachment #9283445 - Attachment is obsolete: true

Hey there! I stumbled upon a weird case too. :Kwan helped me a lot diagnosing it. I uploaded a pretty big patch with moz-phab. This patch contains a files moved around. Some of them are empty files. Per Kwan, moz-phab submitted a corrupted diff which prevents lando from landing it. More precisely, we get these errors from phab[1]. I left more info on the Phab revision itself[2].

I'm happy to provide more context if needed!

[1] https://phabricator.services.mozilla.com/D150362?download=true
[2] https://phabricator.services.mozilla.com/D150362#4925914

Attachment #9283454 - Attachment is obsolete: true
Attachment #9283288 - Attachment is obsolete: true
Attachment #9283693 - Attachment is obsolete: true
Attachment #9283669 - Attachment description: WIP: tests: update git + hg int tests to check empty file ops (Bug 1766011) r?sheehan → tests: update git + hg int tests to check empty file ops (Bug 1766011) r?sheehan
Status: NEW → RESOLVED
Closed: 3 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: