/[Apache-SVN]
ViewVC logotype

Revision 1583639


Jump to revision: Previous Next
Author: stsp
Date: Tue Apr 1 11:51:43 2014 UTC (10 years, 7 months ago)
Changed paths: 18
Log Message:
Create the ra-git branch: git repository access for Subversion

This allows Subversion clients to interact with git repositories,
paving the way towards better integration of both systems.

This code originated in a private git repository maintained by me and Carlos.
Due to popular demand we're now moving development of this library to
svn.apache.org. Since the Subversion project has finally been convinced
that git has the better backend[1], we hope to accelerate development of
the git repository access layer by joining forces on this project with
the other SVN and libgit2 developers.

[1] https://issues.apache.org/jira/browse/INFRA-7524

We hope to get libsvn_ra_git production ready in time for Subversion 1.9.0.

The long-term intention is that git will become the default repository
backend for Subversion 1.10 and later, lifting much of the burden of
backend development off the SVN team. BDB has already been deprecated in
1.8 because of this burden. Development of the FSFS successor FSX has been
slower than anticipated but FSX will stay as an optional backend in case
empirical data demonstrates that it outperforms git in large deployments.
But the default migration path for the current FSFS userbase will be git.

See the BRANCH-README for design and implementation notes and a list
of remaining TODO items.

Patch by: me
          Carlos Martín Nieto <cmn\ at \elego.de>

* BRANCH-README: New.

* Makefile.in,
  aclocal.m4,
  build/ac-macros/libgit2.m4,
  build.conf,
  configure.ac: Add libgit2 to the build system.

* subversion/include/svn_ra.h
  (svn_ra_get_wc_adm_subdir_func_t): New function which allows the RA
    layer to obtain the absolute path to the working copy admin area.
  (svn_ra_callbacks2_t): Add svn_ra_get_wc_adm_subdir_func_t.
  (svn_ra_git_init): Declare.

* subversion/libsvn_client/ra.c
  (get_wc_adm_subdir): Implementation of svn_ra_get_wc_adm_subdir_func_t.
  (svn_client__open_ra_session_internal): Hook up get_wc_adm_subdir.
  
* subversion/libsvn_ra/deprecated.c
  subversion/libsvn_ra/deprecated.h:
  (svn_ra_git__deprecated_init): New.

* subversion/libsvn_ra/ra_loader.c
  (git_schemes): New table of git URL schemes.
  (ra_lib_defn): Add ra_git.
  (+svn_ra_git_init): New.

* subversion/libsvn_ra/ra_loader.h
  (svn_ra_git__init): Declare.

* subversion/libsvn_ra_git/ra_git.h,
  subversion/libsvn_ra_git/ra_plugin.c,
  subversion/libsvn_ra_git/reporter.c: New files. WIP implementation of ra_git.

* tools/dev/unix-build/Makefile.svn: libgit2 support for my custom build script.


Changed paths

Path Details
Directorysubversion/branches/ra-git/
(Copied from subversion/trunk, r1583623)
added , props changed
Directorysubversion/branches/ra-git/BRANCH-README added
Directorysubversion/branches/ra-git/Makefile.in modified , text changed
Directorysubversion/branches/ra-git/aclocal.m4 modified , text changed
Directorysubversion/branches/ra-git/build/ac-macros/libgit2.m4 added
Directorysubversion/branches/ra-git/build.conf modified , text changed
Directorysubversion/branches/ra-git/configure.ac modified , text changed
Directorysubversion/branches/ra-git/subversion/include/svn_ra.h modified , text changed
Directorysubversion/branches/ra-git/subversion/libsvn_client/ra.c modified , text changed
Directorysubversion/branches/ra-git/subversion/libsvn_ra/deprecated.c modified , text changed
Directorysubversion/branches/ra-git/subversion/libsvn_ra/deprecated.h modified , text changed
Directorysubversion/branches/ra-git/subversion/libsvn_ra/ra_loader.c modified , text changed
Directorysubversion/branches/ra-git/subversion/libsvn_ra/ra_loader.h modified , text changed
Directorysubversion/branches/ra-git/subversion/libsvn_ra_git/ added
Directorysubversion/branches/ra-git/subversion/libsvn_ra_git/ra_git.h added
Directorysubversion/branches/ra-git/subversion/libsvn_ra_git/ra_plugin.c added
Directorysubversion/branches/ra-git/subversion/libsvn_ra_git/reporter.c added
Directorysubversion/branches/ra-git/tools/dev/unix-build/Makefile.svn modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26