git-svn: multiple branches directories

Previous thread: [PATCH / RFC] cherry: cache commit to patch-id pairs to avoid repeating work by Geoffrey Irving on Saturday, June 7, 2008 - 7:36 pm. (4 messages)

Next thread: remote show/prune: strange -n(--dry-run) option. by Olivier Marin on Saturday, June 7, 2008 - 8:54 pm. (36 messages)
To: <git@...>
Date: Saturday, June 7, 2008 - 8:23 pm

Hi

Does git-svn support a repository layout where branches may reside under
more than one root?

/trunk
/branches
branch1
branch2
branch3
/somedir
branch4
branch5
branch6
/tags
...

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen@xorcom.com
+972-50-7952406 mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
--

To: <git@...>
Date: Sunday, June 8, 2008 - 12:00 pm

git-svn does support it. The way that I interact with repositories
like this is to have the main git-svn remote track only the trunk
(fetch = /trunk:...), and then to add addititonal remotes for each
branch that I want to track. There may be a nicer way to do it, but
git-svn certainly supports the method just described.
--
-Steven Walter <stevenrwalter@gmail.com>
"A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects."
-Robert Heinlein
--

To: <git@...>
Date: Sunday, June 8, 2008 - 2:37 pm

Thanks for your answer,

I'm afraid I don't follow you. Where do I have to write that and where?

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen@xorcom.com
+972-50-7952406 mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
--

To: <git@...>
Date: Sunday, June 8, 2008 - 2:51 pm

You can just add more svn-remote to a single git repo with "git svn
init". So you could do:

git svn clone -s svn://host/some/repo
cd repo
git svn init --branches somedir svn://host/some/repo/ svn2
git svn fetch svn2

To fetch all new stuff at once, you would then later use "git svn fetch
--all".

Björn
--

Previous thread: [PATCH / RFC] cherry: cache commit to patch-id pairs to avoid repeating work by Geoffrey Irving on Saturday, June 7, 2008 - 7:36 pm. (4 messages)

Next thread: remote show/prune: strange -n(--dry-run) option. by Olivier Marin on Saturday, June 7, 2008 - 8:54 pm. (36 messages)