Homec4science

Survive pull/discover for hosted repositories in all VCSes

Authored by epriestley <git@epriestley.com> on Nov 2 2013, 01:36.

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

Committed
epriestley <git@epriestley.com>Nov 2 2013, 01:36
Pushed
aubortJan 31 2017, 17:16
Parents
rPHa0e820ad9a2e: Improve repository hinting and feedback
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH3607bd487cc0: Survive pull/discover for hosted repositories in all VCSes (authored by epriestley <git@epriestley.com>).Nov 2 2013, 01:36