Page MenuHomePhabricator

Produce a more tailored checkout URI for Subversion
ClosedPublic

Authored by epriestley on Feb 28 2014, 8:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 12:46 PM
Unknown Object (File)
Sun, Dec 15, 6:37 AM
Unknown Object (File)
Fri, Dec 13, 2:43 PM
Unknown Object (File)
Sat, Dec 7, 6:54 AM
Unknown Object (File)
Tue, Nov 26, 4:21 PM
Unknown Object (File)
Tue, Nov 26, 4:21 PM
Unknown Object (File)
Tue, Nov 26, 4:21 PM
Unknown Object (File)
Tue, Nov 26, 4:21 PM
Subscribers

Details

Summary

For imported SVN repositories with an "Import Only" path, we produce a /path/to/root/ URI, but should produce /path/to/root/then/to/import/only/.

As it is, the URI instructs the user to check out the whole repository.

Also, don't show the "Clone As" fragment in the URI for remote repositories, and prevent it from being edited for nonhosted repositories. This is generally more consistent with user expectation.

Test Plan
  • Created a remote SVN repository with "Import Only", saw path include it.
  • Verified no "Clone As" options, no "Clone As" in URI.
  • Switched it to hosted, saw "Clone As" options appear and work properly.

Diff Detail

Repository
rP Phabricator
Branch
svnimport
Lint
Lint Passed
Unit
Tests Passed

Event Timeline

btrahan edited edge metadata.
This revision is now accepted and ready to land.Feb 28 2014, 9:04 PM
epriestley updated this revision to Unknown Object (????).Feb 28 2014, 9:04 PM
  • Add a unit test, since we have coverage on this stuff.