From: Harvey Harrison <harvey.harrison@gmail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: Bryan Donlan <bdonlan@gmail.com>, git@vger.kernel.org
Subject: Re: [SoC RFC] libsvn-fs-git: A git backend for the subversion filesystem
Date: Wed, 19 Mar 2008 23:18:34 -0700 [thread overview]
Message-ID: <1205993915.17607.32.camel@brick> (raw)
In-Reply-To: <20080320045632.GB8410@spearce.org>
On Thu, 2008-03-20 at 00:56 -0400, Shawn O. Pearce wrote:
> Bryan Donlan <bdonlan@gmail.com> wrote:
> > /revmap/NNN - a reference to the commit hash in the .git-svn branch
> > corresponding to the given subversion revision number
>
> How about using a simple flat file interface? To initially prime
> the file you can do something like:
>
> git rev-list --topo-order --date-order --reverse --all >.git/svn-map
>
> and then number the revisions by the line number that they appear on.
> Locating a Git SHA-1 for a specific SVN revision would be a simple
> case of lseek(fd, 41 * rev, SEEK_SET). Going the other direction
> would be more of a challenge, but is still doable.
>
> Updating the file should just require appending new commits; if
> the SVN client wants a new commit you append on and return the
> line number. If Git has caused new commits not in this file you
> need to rebuild the log. This would have to be done incrementally,
> to prevent changing a prior SVN revision number that clients may
> already know about.
Why not just copy the rev_map format git-svn already uses, it's pretty
efficient.
Harvey
next prev parent reply other threads:[~2008-03-20 6:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 4:08 [SoC RFC] libsvn-fs-git: A git backend for the subversion filesystem Bryan Donlan
2008-03-20 4:31 ` Sam Vilain
2008-03-20 4:56 ` Shawn O. Pearce
2008-03-20 6:18 ` Harvey Harrison [this message]
2008-03-20 9:22 ` Julian Phillips
2008-03-20 10:01 ` Jakub Narebski
2008-03-22 5:02 ` Bryan Donlan
2008-03-22 11:35 ` thread-safe libgit.a as a GSoC project, was " Johannes Schindelin
2008-03-23 1:34 ` Govind Salinas
2008-03-23 2:10 ` Johannes Schindelin
2008-03-24 19:50 ` Bryan Donlan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1205993915.17607.32.camel@brick \
--to=harvey.harrison@gmail.com \
--cc=bdonlan@gmail.com \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).