subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1717755 [1/4] - in /subversion/branches/ra-git/subversion/libsvn_ra_git: fetch.c ra_git.h ra_plugin.c reporter.c session.c
Date Thu, 03 Dec 2015 13:04:57 GMT
Author: rhuijben
Date: Thu Dec  3 13:04:57 2015
New Revision: 1717755

URL: http://svn.apache.org/viewvc?rev=1717755&view=rev
Log:
On the ra-git branch: Following up on the recent addition of libsvn_fs_git,
transform libsvn_ra_git into a wrapper over libsvn_ra_local with only the
limited git knowledge needed to create and update a mirror.

This breaks all existing usages of ra_git as it changes the in-repository path
of the master branch from '/' into '/trunk'. Luckily there aren't any existing
users that we care for.

At the same time it implements quite a few ra apis that were not implemented
stubs, and removes implementation for quite a few others. Things like 'svn ls'
now just work directly.
(Not fast of course as creating and then using the ra session requires
 mirroring the whole git repository)

If this is too painful, you might want to think about using libsvn_fs_git
on a server instead...

* subversion/libsvn_ra_git/fetch.c
  New file, based on the old ra_plugin.c.

* subversion/libsvn_ra_git/ra_git.h
  (svn_ra_git__session_t): New struct.
  (GIT2_ERR,
   GIT2_ERR_NOTFOUND): New macros.
  (svn_ra_git_branch_t): New struct.
  (svn_ra_git__split_url,
   svn_ra_git__git_fetch): New functions.
  (*): Remove old functions.

* subversion/libsvn_ra_git/reporter.c
  Remove file. All this is now just used from ra_local.

* subversion/libsvn_ra_git/session.c
  New file, based on the old ra_plugin.c

Added:
    subversion/branches/ra-git/subversion/libsvn_ra_git/fetch.c
      - copied, changed from r1717659, subversion/branches/ra-git/subversion/libsvn_ra_git/ra_plugin.c
    subversion/branches/ra-git/subversion/libsvn_ra_git/session.c
      - copied, changed from r1717754, subversion/branches/ra-git/subversion/libsvn_ra_git/ra_plugin.c
Removed:
    subversion/branches/ra-git/subversion/libsvn_ra_git/ra_plugin.c
    subversion/branches/ra-git/subversion/libsvn_ra_git/reporter.c
Modified:
    subversion/branches/ra-git/subversion/libsvn_ra_git/ra_git.h


Mime
View raw message