Page MenuHomePhabricator

Remove all uses of PhutilGitURI in Phabricator
ClosedPublic

Authored by epriestley on Jun 13 2016, 1:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 1, 6:47 PM
Unknown Object (File)
Sat, Apr 27, 10:20 PM
Unknown Object (File)
Fri, Apr 19, 4:54 PM
Unknown Object (File)
Sun, Apr 7, 3:01 PM
Unknown Object (File)
Apr 3 2024, 12:45 PM
Unknown Object (File)
Apr 2 2024, 11:03 PM
Unknown Object (File)
Mar 30 2024, 10:26 AM
Unknown Object (File)
Mar 16 2024, 8:37 AM
Subscribers
None

Details

Summary

Ref T11137. This class is removed in D16099. Depends on D16099.

PhutilURI now attempts to "just work" with Git-style URIs, so at least in theory we can just delete all of this code and pretend it does not exist.

(I've left "Display URI" and "Effective URI" as distinct, at least for now, because I think the distinction may be relevant in the future even though it isn't right now, and to keep this diff small, although I may go remove one after I think about this for a bit.)

Test Plan
  • Created a new Git repository with a Git URI.
  • Pulled/updated it, which now works correctly and should resolve the original issue in T11137.
  • Verified that daemons now align the origin to a Git-style URI with a relative path, which should resolve the original issue in T11004.
  • Grepped for PhutilGitURI.
  • Also grepped in arcanist/, but found no matches, so no patch for that.
  • Checked display/conduit URIs.

Diff Detail

Repository
rP Phabricator
Branch
gituri2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 12611
Build 16011: Run Core Tests
Build 16010: arc lint + arc unit

Unit TestsFailed

TimeTest
0 msPhabricatorRepositoryTestCase::Unknown Unit Message ("")
Assertion failed, expected values to be equal (at PhabricatorRepositoryTestCase.php:26): Protocol for 'git@example.com:path'. Expected: 'ssh' Actual: ''
0 msPhabricatorRepositoryURINormalizerTestCase::Unknown Unit Message ("")
Assertion failed, expected values to be equal (at PhabricatorRepositoryURINormalizerTestCase.php:30): Normalized Git path for "git@domain.com:path.git". Expected: 'path' Actual: 'git@domain.com:path'
0 msAlmanacNamesTestCase::Unknown Unit Message ("")
30 assertions passed.
0 msAlmanacServiceTypeTestCase::Unknown Unit Message ("")
1 assertion passed.
0 msAphrontHTTPSinkTestCase::Unknown Unit Message ("")
1 assertion passed.
View Full Test Results (2 Failed · 331 Passed)

Event Timeline

epriestley retitled this revision from to Remove all uses of PhutilGitURI in Phabricator.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

Those test failures are expected until D16099 lands.

chad edited edge metadata.
This revision is now accepted and ready to land.Jun 13 2016, 1:48 PM
This revision was automatically updated to reflect the committed changes.