Page MenuHomePhabricator

Fix some repository URI handling issues in Git and Mercurial
ClosedPublic

Authored by epriestley on Dec 12 2013, 12:30 AM.
Tags
None
Referenced Files
F15380918: D7759.diff
Fri, Mar 14, 4:59 AM
Unknown Object (File)
Fri, Feb 28, 11:03 AM
Unknown Object (File)
Fri, Feb 28, 11:03 AM
Unknown Object (File)
Fri, Feb 28, 11:03 AM
Unknown Object (File)
Wed, Feb 26, 9:33 PM
Unknown Object (File)
Mon, Feb 24, 11:19 AM
Unknown Object (File)
Sat, Feb 22, 10:52 PM
Unknown Object (File)
Mon, Feb 17, 2:56 AM
Subscribers

Details

Summary

See https://github.com/facebook/phabricator/issues/467. @dctrwatson also ran into an issue where we were trying to setPass() a GitURI.

  • For Git and Mercurial, properly generate credential URIs where relevant.
  • Don't try to setPass() on Git-style URIs.

This isn't perfect but should clean things up a bit.

Test Plan

Added unit tests. Lots of grep.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley updated this revision to Unknown Object (????).Dec 12 2013, 5:45 PM
  • Add more tests.
  • Ran pull/discover against an HTTP auth remote.