git-svn: multiple branches directories
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
...
Signature · 4 lines
Tzafrir Cohen icq#16849755 jabber:[email protected] +972-50-7952406 mailto:[email protected] http://www.xorcom.com iax:[email protected]/tzafrir
Quoted 5 lines · Tzafrir Cohen
Hi
Does git-svn support a repository layout where branches may reside under more than one root?
Quoted 11 lines
/trunk
/branches
branch1
branch2
branch3
/somedir
branch4
branch5
branch6
/tags
...
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.
Signature · 8 lines
-Steven Walter <[email protected]> "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
Quoted 18 lines · Steven Walter
Quoted 5 lines · Tzafrir Cohen
Hi
Does git-svn support a repository layout where branches may reside under more than one root?
Quoted 11 lines
/trunk
/branches
branch1
branch2
branch3
/somedir
branch4
branch5
branch6
/tags
...
Quoted 5 lines
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.
Thanks for your answer,
I'm afraid I don't follow you. Where do I have to write that and where?
Signature · 4 lines
Tzafrir Cohen icq#16849755 jabber:[email protected] +972-50-7952406 mailto:[email protected] http://www.xorcom.com iax:[email protected]/tzafrir
Quoted 25 lines · Tzafrir Cohen
Quoted 18 lines · Steven Walter
Quoted 5 lines · Tzafrir Cohen
Hi
Does git-svn support a repository layout where branches may reside under more than one root?
Quoted 11 lines
/trunk
/branches
branch1
branch2
branch3
/somedir
branch4
branch5
branch6
/tags
...Quoted 5 lines
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.
Quoted 3 lines
Thanks for your answer,
I'm afraid I don't follow you. Where do I have to write that and where?
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