HomePhabricator

Produce a more tailored checkout URI for Subversion

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

Provenance
epriestleyAuthored on
epriestleyPushed on Feb 28 2014, 9:04 PM
Reviewer
btrahan
Differential Revision
D8375: Produce a more tailored checkout URI for Subversion
Parents
rPd86bb086cac3: Reduce initial discovery from O(branches * commits) to O(commits)
Branches
Unknown
Tags
Unknown

Event Timeline