Homec4science

Produce a more tailored checkout URI for Subversion

Authored by epriestley <git@epriestley.com> on Feb 28 2014, 22:04.

Description

Produce a more tailored checkout URI for Subversion

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.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, staticshock

Differential Revision: https://secure.phabricator.com/D8375

Details

Committed
epriestley <git@epriestley.com>Feb 28 2014, 22:04
Pushed
aubortJan 31 2017, 17:16
Parents
rPHd86bb086cac3: Reduce initial discovery from O(branches * commits) to O(commits)
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHa3c1dcb92897: Produce a more tailored checkout URI for Subversion (authored by epriestley <git@epriestley.com>).Feb 28 2014, 22:04