git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Multiple SVN remote branches listed in "git branch -r" after "git-svn  fetch"
@ 2010-04-30 18:59 Bradley Wagner
  2010-05-04 16:29 ` Bradley Wagner
  0 siblings, 1 reply; 2+ messages in thread
From: Bradley Wagner @ 2010-04-30 18:59 UTC (permalink / raw)
  To: git; +Cc: Jonathan Wage, Chap Lovejoy

So I did a conversion to Git using git-svn.

git init <svn_url>
# updated the .git/config file to reference a few different locations
for branches:
[svn-remote "svn"]
        url = <svn_url>
        fetch = cascade/trunk:refs/remotes/trunk
        branches =
cascade/branches/{hibernate-upgrade,spring-upgrade}}:refs/remotes/*
        branches = cascade/branches/{6.x,5.x,4.x,3.x}/*:refs/remotes/*
        tags = cascade/tags/{3.7.x,4.x,5.x,6.x,old-releases}/*:refs/remotes/tags/*
git svn fetch

Now, I'm seeing branches/tags listed multiple times with: git branch -r

  6.x/6.0.2.1
  6.x/6.0.2.1@12401
  6.x/6.0.2.1@12422
....
  tags/4.x/rel_4_22
  tags/4.x/rel_4_22@4093
  tags/4.x/rel_4_22@4384

What do these other branches with the @ sign mean? Did I do something wrong?

Thanks,
Bradley

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Multiple SVN remote branches listed in "git branch -r" after  "git-svn fetch"
  2010-04-30 18:59 Multiple SVN remote branches listed in "git branch -r" after "git-svn fetch" Bradley Wagner
@ 2010-05-04 16:29 ` Bradley Wagner
  0 siblings, 0 replies; 2+ messages in thread
From: Bradley Wagner @ 2010-05-04 16:29 UTC (permalink / raw)
  To: git

By the way, I figured this out if you ever run into the same thing.
When you fetch any SVN branches or tags that have ever been
moved/renamed, Git will create these other tags and branches with '@'
signs in them.

For example, these two branches:
  4.x/v4_0
  4.x/v4_0@8459
mean that in r8460 the 4.0 branch was moved to a different location or
renamed. Good news is that the base branch "4.x/v4_0" contains the
revision history of both: everything before and after the move -- so
it's the only one that matters when converting to git branches.

Just an FYI.

On Fri, Apr 30, 2010 at 2:59 PM, Bradley Wagner
<bradley.wagner@hannonhill.com> wrote:
>
> So I did a conversion to Git using git-svn.
>
> git init <svn_url>
> # updated the .git/config file to reference a few different locations
> for branches:
> [svn-remote "svn"]
>        url = <svn_url>
>        fetch = cascade/trunk:refs/remotes/trunk
>        branches =
> cascade/branches/{hibernate-upgrade,spring-upgrade}}:refs/remotes/*
>        branches = cascade/branches/{6.x,5.x,4.x,3.x}/*:refs/remotes/*
>        tags = cascade/tags/{3.7.x,4.x,5.x,6.x,old-releases}/*:refs/remotes/tags/*
> git svn fetch
>
> Now, I'm seeing branches/tags listed multiple times with: git branch -r
>
>  6.x/6.0.2.1
>  6.x/6.0.2.1@12401
>  6.x/6.0.2.1@12422
> ....
>  tags/4.x/rel_4_22
>  tags/4.x/rel_4_22@4093
>  tags/4.x/rel_4_22@4384
>
> What do these other branches with the @ sign mean? Did I do something wrong?
>
> Thanks,
> Bradley



--
Hannon Hill - Put Us to the Test
bradley.wagner@hannonhill.com | http://www.hannonhill.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-04 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30 18:59 Multiple SVN remote branches listed in "git branch -r" after "git-svn fetch" Bradley Wagner
2010-05-04 16:29 ` Bradley Wagner

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).