Homec4science

Support serving SVN repositories over SSH

Authored by epriestley <git@epriestley.com> on Nov 11 2013, 21:19.

Description

Support serving SVN repositories over SSH

Summary:
Ref T2230. The SVN protocol has a sensible protocol format with a good spec here:

http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_ra_svn/protocol

Particularly, compare this statement to the clown show that is the Mercurial wire protocol:

It is possible to parse an item without knowing its type in advance.

WHAT A REASONABLE STATEMENT TO BE ABLE TO MAKE ABOUT A WIRE PROTOCOL

Although it makes substantially more sense than Mercurial, it's much heavier-weight than the Git or Mercurial protocols, since it isn't distributed.

It's also not possible to figure out if a request is a write request (or even which repository it is against) without proxying some of the protocol frames. Finally, several protocol commands embed repository URLs, and we need to reach into the protocol and translate them.

Test Plan: Ran various SVN commands over SSH (svn log, svn up, svn commit, etc).

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2230

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

Details

Committed
epriestley <git@epriestley.com>Nov 11 2013, 21:19
Pushed
aubortJan 31 2017, 17:16
Parents
rPH8840f60218ef: Enable Mercurial reads and writes over SSH
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH85f505465e53: Support serving SVN repositories over SSH (authored by epriestley <git@epriestley.com>).Nov 11 2013, 21:19