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

Re: git-svn and svn sw --relocate

From
EWEric Wong <normalperson@yhbt.net>
Date
Apr 3, 2006, 22:39 UTC
Message-ID
<20060403223954.GB16726@hand.yhbt.net>
In-Reply-To
<44314B41.3050902@iaglans.de>
Nicolas Vilz 'niv' <niv@iaglans.de> wrote:
Show 19 quoted lines
> Eric Wong wrote:
> > Nicolas Vilz 'niv' <niv@iaglans.de> wrote:
> >>i have now my repository locally and i want to get it remotely on a
> >>server, in order to have a few collaborators...
> >>
> >>the steps on the svn-side are clear. But what do i have todo on the
> >>git-svn-side of this life?
> >>
> >>does a simple "svn sw --relocate" do the job in the git-svn meta-dir?
> > 
> > 
> > Yes, you'll need to do that in .git/git-svn/tree and also update
> > .git/git-svn/info/url by hand.
> 
> Will there be any other sha1-sums for that repository so that i have to
> merge them again and again? This issue occured to me the last time i
> encountered the git-svn-change with the external sources, where i had to
> repair my external git-svn-tree, which resulted in new sha1sums
> somehow... that was very unpleasant to my collegue..

sha1-sums for commits? or trees? I'm not sure that I follow, git-svn should make commits with at least two explicit parents (one being the commit you're using and, and the other remote/git-svn) back to remotes/git-svn.

The commit sha1s for the same svn tree do not necessary always match, and ac7490506418e3ec495775e432b7040a17449fa9 acknowledges that:

    contrib/git-svn: allow rebuild to work on non-linear remote heads
    
    Because committing back to an SVN repository from different
    machines can result in different lineages, two different
    repositories running git-svn can result in different commit
    SHA1s (but of the same tree).  Sometimes trees that are tracked
    independently are merged together (usually via children),
    resulting in non-unique git-svn-id: lines in rev-list.

The tree sha1 should always match, however. You can use the --branch <refname/commit> option to do automatic branch joining based on tree sha1 checksums to combine history.

-- 
Eric Wong
Previous: Nicolas Vilz 'niv'
Message 4 of 4 in “git-svn and svn sw --relocate”
  1. Nicolas Vilz 'niv'Apr 2, 2006
  2. Eric WongApr 2, 2006
  3. Nicolas Vilz 'niv'Apr 3, 2006
  4. Eric WongApr 3, 2006

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.