git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Automating svn<->git gateway

From
JHJan Hudec <bulb@ucw.cz>
Date
Oct 12, 2010, 17:35 UTC
Message-ID
<20101012173524.GB30870@efreet.light.src>
In-Reply-To
<AANLkTikp1e72RQs3QQTqyg2m4Vk6rjz=Sv33iHAxDKoP@mail.gmail.com>
On Mon, Oct 11, 2010 at 16:33:47 -0400, Joshua Shrader wrote:
Show 12 quoted lines
> Check out the article and third-to-last comment (as of today) at
> http://blog.emmanuelbernard.com/2010/05/git-how-my-life-has-improved-since-last-month-when-i-used-svn/comment-page-1/#comment-2248
> 
> The comment (by Josh) is mine, and details how I've approached this
> problem.  It's worked very well for us, and follows from a workflow
> presented in Jon Loeliger's "Version Control with Git."  I haven't
> messed with any hooks, but I'd imagine that wouldn't be too difficult.
>  Right now, we keep a couple legacy maintenance SVN branches sync'd up
> with their corresponding Git branches.  The one thing that we haven't
> attempted (and don't plan on) is creating a new branch in Git that we
> want to duplicate in SVN.  We're only syncing branches that existed in
> SVN prior to our move to Git.  Any new branches are "Git-only."

Thanks. That's the workflow I had in mind. I already did something similar ages ago with GNU arch and CVS, but the exact outline for git-svn will be definitely helpful. Especially the exact order in which the merges need to be done.

For my purpose I'll definitely need to automate it, because we often need to see each other's changes quickly (often somebody needs a fix from somebody else to be able to test something else or to base other changes on it). So requiring to log in on the server and run the synchronization manually would add too much overhead.

Show 10 quoted lines
> On Mon, Oct 11, 2010 at 3:30 PM, Jan Hudec <bulb@ucw.cz> wrote:
> > Hello Folks,
> >
> > I want to set up a gateway between subversion and git, which would keep the
> > master synchonized with subversion trunk, both ways, and allow working with
> > any additional branches independent of subversion. For users it should behave
> > as any other shared git repository accessed by push and pull. And it needs to
> > be automatic.
> >
> > Did anybody try to set up something like this?
-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Joshua ShraderNext: Jakub Narebski
Message 3 of 8 in “Automating svn<->git gateway”
  1. Jan HudecOct 11, 2010
  2. Joshua ShraderOct 11, 2010
  3. Jan HudecOct 12, 2010
  4. Jakub NarebskiOct 12, 2010
  5. Jan HudecOct 12, 2010
  6. Jakub NarebskiOct 12, 2010
  7. Jan HudecOct 13, 2010
  8. Jakub NarebskiOct 15, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.