git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn-Cloning repository with complicate nesting
@ 2009-08-27  8:32 Daniele Segato
  2009-09-03 14:31 ` Marc Branchaud
  0 siblings, 1 reply; 4+ messages in thread
From: Daniele Segato @ 2009-08-27  8:32 UTC (permalink / raw)
  To: Git Mailing List

Hi, this is my first message in the list: this may be a newbie
question and my English may not be very good.

I've an SVN repository structured like this:

http://<url>/path/to/repo
    |
  HEAD
    |----- root
    |
  BRANCHES
    |----- V1.0
    |         |----- root
    |
    |----- V1.1
    |         |----- root
    |
    |----- V1.2
    |         |----- root
    |
    |----- DEV
    |         |----- FEATURE1
    |         |            |----- root
    |         |
    |         |----- FEATURE2
    |         |            |----- root
    |         |
    |         |----- FEATURE3
    |                      |----- root
    |
    |----- BUILDS
              |----- BUILD1
              |            |----- root
              |
              |----- BUILD2
              |            |----- root
              |
              |----- BUILD3
                           |----- root

the same for TAGS.

I did this:

git init
git svn init <url>
vim .git/config

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[svn-remote "svn"]
	url = <url>
	fetch = <url>/HEAD/root:refs/remotes/trunk
	branches = <url>/BRANCHES/*/root:refs/remotes/branches/*
	branches = <url>/BRANCHES/*/*/root:refs/remotes/devel/*
	tags = <url>/TAGS/*/root:refs/remotes/tags/*


git svn fetch


It is now cloning the repo (it is a really big repo)


It is my configuration ok for the repository structure?

if from another terminal I execute "git branch -r" I get:
  tags/V1.3.0
  tags/V1.3.0@3260
  tags/V1.3.1
  tags/V1.3.1@3359
  tags/V1.3.2
  tags/V1.3.2@4256
  tags/V1.4.0-COMMUNITY-FINAL
  tags/V1.4.0-ENTERPRISE-BETA@4241
  trunk
  trunk@4475

It should have already created some branch but I don't see any...

what are those @XXXX number for some of those branches?

Is the syntax of the svn-remote configuration correct?

with this:
branches = <url>/BRANCHES/*/*/root:refs/remotes/devel/*
how does git choose the name of the branch? (
refs/remotes/devel/WHAT_GOES_HERE ? )

I would like it to use the tuple */* of the directory


If the syntax of my configuration is not correct, where can I found a
documentation about it? I couldn't find one.


Thanks
Regards,
Daniele

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

end of thread, other threads:[~2009-09-03 17:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-27  8:32 git-svn-Cloning repository with complicate nesting Daniele Segato
2009-09-03 14:31 ` Marc Branchaud
2009-09-03 16:17   ` Daniele Segato
2009-09-03 16:50     ` Marc Branchaud

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