login
Header Space

 
 

Re: [PATCH] Teach git-svn how to catch up with its tracking branches

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Asheesh Laroia <asheesh@...>
Cc: Steven Grimm <koreth@...>, <git@...>
Date: Thursday, May 8, 2008 - 4:21 am

On Wed, May 07, 2008 at 11:48:17PM -0700, Asheesh Laroia wrote:

This got me thinking about a potential design for a git-svnserver.
[Warning: engineering hack ahead, proceeed with caution.]

Instead of re-implementing any part of svn, just use a stock svn repo
+ server.  From the svn post-commit hook, update a git-svn repo as
above.  From the git post-commit, do a git-svn rebase.  Of course, you
need a shared lock between the two pairs of pre/post commit hooks.

The problem of attribution in svn from git-svn is probably easier to
solve from within the context of a post-commit hook.  The problem of
having to round-trip git commits through svn in a way that changes
their ids remains.  Effectively, that means commits have to be
considered "unpublished" (for the purpose of not basing other work
upon them) until they are pushed to the git-half of the git+svn.

Still, this scenario is a pretty gentle migration path from svn to git
- one that allows regular git users to use only git-core, not git-svn,
and still allows svn clients to work.  Maybe some git-alias magic
could hide the fact that a git push has to really become a push +
fetch.


-chris
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Teach git-svn how to catch up with its tracking ..., Chris Shoemaker, (Thu May 8, 4:21 am)
speck-geostationary