HomePhabricator

Survive pull/discover for hosted repositories in all VCSes

Description

Survive pull/discover for hosted repositories in all VCSes

Summary:
Hosted repositories only sometimes survive the pull/discover phases right now, due to issues like:

  • Pull tries to git clone, but should git init.
  • Mercurial doesn't handle empty repositories with on branches.
  • SVN tries to connect to an invalid remote.
  • None of them set the INIT repo flag correctly, so status doesn't get updated properly in the UI.

Fix all this stuff.

Test Plan:

  • For each of Git, SVN and Mercurial:
    • Created a new repository from the web UI in a deactivated state.
    • Made it hosted.
    • Manually ran pull/discover.
    • Verified we end up with initialized, empty repositories in consistent states.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2230

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

Details

Provenance
epriestleyAuthored on Nov 2 2013, 12:36 AM
Reviewer
btrahan
Differential Revision
D7474: Survive pull/discover for hosted repositories in all VCSes
Parents
rPa0e820ad9a2e: Improve repository hinting and feedback
Branches
Unknown
Tags
Unknown

Event Timeline