Page MenuHomePhabricator

Don't parse separator tabs as part of the filename in Git diffs which affect files with spaces
ClosedPublic

Authored by epriestley on Aug 14 2014, 4:09 PM.
Tags
None
Referenced Files
F13329373: D10267.diff
Sun, Jun 16, 11:22 PM
F13316965: D10267.diff
Thu, Jun 13, 8:52 AM
F13315813: D10267.id24717.diff
Wed, Jun 12, 6:56 PM
F13302836: D10267.diff
Sat, Jun 8, 5:50 AM
F13289070: D10267.diff
Tue, Jun 4, 11:20 AM
F13279943: D10267.diff
Sun, Jun 2, 1:14 AM
F13273922: D10267.diff
Fri, May 31, 3:01 AM
F13259979: D10267.diff
Sun, May 26, 11:20 PM
Subscribers

Details

Summary

Fixes T5870. When a filename contains spaces, Git will add a "\t" at the end of the "---" and "+++" lines. We currently consume this and think we're reading a file called "blah blah\t".

Instead, parse it out as not part of the filename.

Test Plan

Added failing unit test and made it pass.

Diff Detail

Repository
rARC Arcanist
Branch
rmspace
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/parser/__tests__/diff/git-remove-spaces.gitdiff:4TXT2Tab Literal
Unit
Tests Passed
Build Status
Buildable 2227
Build 2231: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Don't parse separator tabs as part of the filename in Git diffs which affect files with spaces.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
This revision is now accepted and ready to land.Aug 14 2014, 6:50 PM
epriestley updated this revision to Diff 24717.

Closed by commit rARC65b6e1bdac6e (authored by @epriestley).