Skip to contentSkip to conversation

subversion repository structure

DISCUSSION Yoshinori K. Okuji 6 participants 14 messages Jul 13, 2008 – Jul 21, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

Thank all of you for making effort on moving the version control system to Subversion. I think this is a big improvement, and I like it.

Now, I would like to talk about the structure. Currently, it looks like this:

trunk/

      grub/
      grub2/

tags/
release*/
branches/
prepare*/

IMO, this is not very convenient. This means that, when we want to create, say, version 1.99, we would tag both grub and grub2. This does not sound good to me.

So, I think that this would be more appropriate:

grub/
trunk/
tags/
branches/
grub2/
trunk/
tags/
branches/

Since grub and grub2 are totally different, it would be better to segregate them completely this way.

What is your opinion?

Regards,
Okuji

#1 lore raw
Quoted 32 lines · On Sun, 13 Jul 2008 03:54:44 +0200 "Yoshinori K. Okuji" <[email protected]> wrote:

Hello,

Thank all of you for making effort on moving the version control system to Subversion. I think this is a big improvement, and I like it.

Now, I would like to talk about the structure. Currently, it looks like this:

trunk/

      grub/
      grub2/

tags/
release*/
branches/
prepare*/

IMO, this is not very convenient. This means that, when we want to create, say, version 1.99, we would tag both grub and grub2. This does not sound good to me.

So, I think that this would be more appropriate:

grub/
trunk/
tags/
branches/
grub2/
trunk/
tags/
branches/

Quoted 4 lines

Since grub and grub2 are totally different, it would be better to segregate them completely this way.

What is your opinion?

I agree! Your suggestion seems very logical.

Can we simply copy trunk/grub2 to grub2/trunk (and so on for the other "branches")? Then those of us mirroring the subversion tree might be able to just switch to the new URL for trunk... I hope.

Regards,
Colin

#2 lore raw
In reply to Yoshinori K. Okuji
Quoted 10 lines · Yoshinori K. Okuji

Hello,

Thank all of you for making effort on moving the version control system to Subversion. I think this is a big improvement, and I like it.

Now, I would like to talk about the structure. Currently, it looks like this:

trunk/

      grub/
      grub2/
Quoted 8 lines

tags/
release*/
branches/
prepare*/

IMO, this is not very convenient. This means that, when we want to create, say, version 1.99, we would tag both grub and grub2. This does not sound good to me.

If you look into any directory under tags or branches, is will have either grub or grub2. So not everything needs to be "tagged" (there is no real tagging in Subversion, just copying).

Anyway, the current layout is in disagreement with the standard Subversion practices.

Quoted 11 lines

So, I think that this would be more appropriate:

grub/
trunk/
tags/
branches/
grub2/
trunk/
tags/
branches/

Quoted 4 lines

Since grub and grub2 are totally different, it would be better to segregate them completely this way.

What is your opinion?

I think grub should be a branch, e.g. grub-legacy. It is our stable branch essentially. Even if the code is different, the purpose is the same.

And we should avoid having intermediate "grub" or "grub2" directories anywhere.

As for the git mirroring, please don't worry. There were no complaints after the Subversion switchover, so I guess another fresh import won't be a big problem.

Signature · 2 lines
Regards,
Pavel Roskin
#3 lore raw
Quoted 17 lines · On Monday 14 July 2008 14:37:45 Pavel Roskin wrote:
Quoted 16 lines · Yoshinori K. Okuji

Hello,

Thank all of you for making effort on moving the version control system to Subversion. I think this is a big improvement, and I like it.

Now, I would like to talk about the structure. Currently, it looks like this:

trunk/

      grub/
      grub2/

tags/
release*/
branches/
prepare*/

Quoted 7 lines
Quoted 3 lines

IMO, this is not very convenient. This means that, when we want to create, say, version 1.99, we would tag both grub and grub2. This does not sound good to me.

If you look into any directory under tags or branches, is will have either grub or grub2. So not everything needs to be "tagged" (there is no real tagging in Subversion, just copying).

Sure. My question is more related to human understanding.

Quoted 14 lines

Anyway, the current layout is in disagreement with the standard Subversion practices.

Quoted 11 lines

So, I think that this would be more appropriate:

grub/
trunk/
tags/
branches/
grub2/
trunk/
tags/
branches/

Quoted 8 lines
Quoted 4 lines

Since grub and grub2 are totally different, it would be better to segregate them completely this way.

What is your opinion?

I think grub should be a branch, e.g. grub-legacy. It is our stable branch essentially. Even if the code is different, the purpose is the same.

I don't agree on this. GRUB Legacy and GRUB 2 are developed fully independently (if any). If we follow your way, the repository would look like this:

branches/
grub-legacy/
prepare_0_97/
prepare_0_98/
prepare_1_98/
prepare_1_99/
...

I feel that this has no logical structure. When we make a branch for GRUB 2, we put it under branches, when we modify the "trunk" of GRUB Legacy, we do under branches, when we make a branch for GRUB Legacy, we use branches...

Regards,
Okuji

#4 lore raw
Quoted 12 lines · Yoshinori K. Okuji

I don't agree on this. GRUB Legacy and GRUB 2 are developed fully independently (if any). If we follow your way, the repository would look like this:

branches/
grub-legacy/
prepare_0_97/
prepare_0_98/
prepare_1_98/
prepare_1_99/
...

Quoted 3 lines

I feel that this has no logical structure. When we make a branch for GRUB 2, we put it under branches, when we modify the "trunk" of GRUB Legacy, we do under branches, when we make a branch for GRUB Legacy, we use branches...

Yes, that's my suggestion. I understand that you may feel uneasy about it, but I don't think we are going to do many releases from the legacy branch, maybe one or none at all.

It's OK to have stable and development branches. grub-legacy is essentially our stable branch, even though it didn't start as a branch.

CVS is inherently asymmetric. Certain things just don't work on branches the way they work on trunk. That's why it was reasonable to avoid branches with CVS for anything but release preparation.

Subversion is (more) symmetric. It's possible to develop on any branch, check the entire history of files, merge changes from other branches. Separating trunk from other branches in the standard Subversion repository layout is primarily to give comfort to CVS users, who are used to having one trunk with a special status.

We could have GRUB 2 under branches too and have no trunk. But having GRUB 2 as the trunk gives us the standard layout, which is a good thing. In any case, I think it's better than any of the "two-headed" solutions.

Signature · 2 lines
Regards,
Pavel Roskin
#5 lore raw
Quoted 17 lines · On Wednesday 16 July 2008 00:23:53 Pavel Roskin wrote:

Yes, that's my suggestion. I understand that you may feel uneasy about it, but I don't think we are going to do many releases from the legacy branch, maybe one or none at all.

It's OK to have stable and development branches. grub-legacy is essentially our stable branch, even though it didn't start as a branch.

CVS is inherently asymmetric. Certain things just don't work on branches the way they work on trunk. That's why it was reasonable to avoid branches with CVS for anything but release preparation.

Subversion is (more) symmetric. It's possible to develop on any branch, check the entire history of files, merge changes from other branches. Separating trunk from other branches in the standard Subversion repository layout is primarily to give comfort to CVS users, who are used to having one trunk with a special status.

Quoted 3 lines

We could have GRUB 2 under branches too and have no trunk. But having GRUB 2 as the trunk gives us the standard layout, which is a good thing. In any case, I think it's better than any of the "two-headed" solutions.

Hmm... I am very used to Subversion as well as CVS, but I myself always make a separation when two branches have no logical relationship (yes, both are in the same project, but have different code bases). Probably my way of thinking is to view directories as categories, while yours is ... I don't know how to call it.

Please let me know others' opinions. I have difficulty in making a decision.

Regards,
Okuji

#6 lore raw
Quoted 22 lines · Yoshinori K. Okuji
Quoted 17 lines · On Wednesday 16 July 2008 00:23:53 Pavel Roskin wrote:

Yes, that's my suggestion. I understand that you may feel uneasy about it, but I don't think we are going to do many releases from the legacy branch, maybe one or none at all.

It's OK to have stable and development branches. grub-legacy is essentially our stable branch, even though it didn't start as a branch.

CVS is inherently asymmetric. Certain things just don't work on branches the way they work on trunk. That's why it was reasonable to avoid branches with CVS for anything but release preparation.

Subversion is (more) symmetric. It's possible to develop on any branch, check the entire history of files, merge changes from other branches. Separating trunk from other branches in the standard Subversion repository layout is primarily to give comfort to CVS users, who are used to having one trunk with a special status.

Quoted 3 lines

We could have GRUB 2 under branches too and have no trunk. But having GRUB 2 as the trunk gives us the standard layout, which is a good thing. In any case, I think it's better than any of the "two-headed" solutions.

Quoted 7 lines

Hmm... I am very used to Subversion as well as CVS, but I myself always make a separation when two branches have no logical relationship (yes, both are in the same project, but have different code bases). Probably my way of thinking is to view directories as categories, while yours is ... I don't know how to call it.

Please let me know others' opinions. I have difficulty in making a decision.

I was quite confused when I checked out the new svn sources because I got more code than I want or need. I want only the grub2 sources and not the legacy grub, but I get them both anyway.

For example:

# ls -l ~/src/grub2
drwxr-xr-x  8 wa1ter users 4096 2008-07-15 17:33 grub  <--- I don't need this
drwxr-xr-x 24 wa1ter users 4096 2008-07-15 16:56 grub2
# grep savannah ~/src/grub2/.svn/entries
svn://svn.savannah.gnu.org/grub/trunk   <--- No mention of grub2?
svn://svn.savannah.gnu.org/grub

I got to this point after several attempts to fetch the grub2 sources, and now I can't remember what I did to get this far. I'm still confused!

At least there should be clear instructions somewhere telling me how to get sources for grub2 *only*, yes/no?

#7 lore raw

Hi,
I prefer to the first layout.
trunk
grub
grub2

if you not need grub, just move grub2 dir like this .../trunk/grub2 but if both need, the trunk dir is easy way.

for tags and branches, all alike trunk.

the style svn layout make we all can be just one command.

IMO, :)

2008/7/16 walt <[email protected]>:

Quoted 68 lines
Quoted 34 lines · Yoshinori K. Okuji
Quoted 18 lines · On Wednesday 16 July 2008 00:23:53 Pavel Roskin wrote:

Yes, that's my suggestion. I understand that you may feel uneasy about it, but I don't think we are going to do many releases from the legacy branch, maybe one or none at all.

It's OK to have stable and development branches. grub-legacy is essentially our stable branch, even though it didn't start as a branch.

CVS is inherently asymmetric. Certain things just don't work on branches the way they work on trunk. That's why it was reasonable to avoid branches with CVS for anything but release preparation.

Subversion is (more) symmetric. It's possible to develop on any branch, check the entire history of files, merge changes from other branches. Separating trunk from other branches in the standard Subversion repository layout is primarily to give comfort to CVS users, who are used to having one trunk with a special status.

Quoted 3 lines

We could have GRUB 2 under branches too and have no trunk. But having GRUB 2 as the trunk gives us the standard layout, which is a good thing. In any case, I think it's better than any of the "two-headed" solutions.

Hmm... I am very used to Subversion as well as CVS, but I myself always make a
separation when two branches have no logical relationship (yes, both are in
the same project, but have different code bases). Probably my way of thinking
is to view directories as categories, while yours is ... I don't know how to
call it.

Quoted 2 lines

Please let me know others' opinions. I have difficulty in making a decision.

I was quite confused when I checked out the new svn sources because I got more code than I want or need. I want only the grub2 sources and not the legacy grub, but I get them both anyway.

For example:

# ls -l ~/src/grub2
drwxr-xr-x  8 wa1ter users 4096 2008-07-15 17:33 grub  <--- I don't need
this
drwxr-xr-x 24 wa1ter users 4096 2008-07-15 16:56 grub2
# grep savannah ~/src/grub2/.svn/entries
svn://svn.savannah.gnu.org/grub/trunk   <--- No mention of grub2?
svn://svn.savannah.gnu.org/grub

I got to this point after several attempts to fetch the grub2 sources, and now I can't remember what I did to get this far. I'm still confused!

At least there should be clear instructions somewhere telling me how to get sources for grub2 *only*, yes/no?

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
致敬
向雅
#8 lore raw
In reply to walt
Quoted 15 lines · walt

I was quite confused when I checked out the new svn sources because I got more code than I want or need. I want only the grub2 sources and not the legacy grub, but I get them both anyway.

For example:

# ls -l ~/src/grub2
drwxr-xr-x  8 wa1ter users 4096 2008-07-15 17:33 grub  <--- I don't need
this
drwxr-xr-x 24 wa1ter users 4096 2008-07-15 16:56 grub2
# grep savannah ~/src/grub2/.svn/entries
svn://svn.savannah.gnu.org/grub/trunk   <--- No mention of grub2?
svn://svn.savannah.gnu.org/grub
Quoted 5 lines

I got to this point after several attempts to fetch the grub2 sources, and now I can't remember what I did to get this far. I'm still confused!

At least there should be clear instructions somewhere telling me how to get sources for grub2 *only*, yes/no?

Hi,

Well, you can checkout grub2 source with:

svn checkout svn://svn.savannah.gnu.org/grub/trunk/grub2

Signature · 1 line
Bean
#9 lore raw
In reply to Pavel Roskin
Quoted 35 lines · Pavel Roskin
Quoted 12 lines · Yoshinori K. Okuji

I don't agree on this. GRUB Legacy and GRUB 2 are developed fully independently (if any). If we follow your way, the repository would look like this:

branches/
grub-legacy/
prepare_0_97/
prepare_0_98/
prepare_1_98/
prepare_1_99/
...

Quoted 3 lines

I feel that this has no logical structure. When we make a branch for GRUB 2, we put it under branches, when we modify the "trunk" of GRUB Legacy, we do under branches, when we make a branch for GRUB Legacy, we use branches...

Yes, that's my suggestion. I understand that you may feel uneasy about it, but I don't think we are going to do many releases from the legacy branch, maybe one or none at all.

It's OK to have stable and development branches. grub-legacy is essentially our stable branch, even though it didn't start as a branch.

CVS is inherently asymmetric. Certain things just don't work on branches the way they work on trunk. That's why it was reasonable to avoid branches with CVS for anything but release preparation.

Subversion is (more) symmetric. It's possible to develop on any branch, check the entire history of files, merge changes from other branches. Separating trunk from other branches in the standard Subversion repository layout is primarily to give comfort to CVS users, who are used to having one trunk with a special status.

Quoted 3 lines

We could have GRUB 2 under branches too and have no trunk. But having GRUB 2 as the trunk gives us the standard layout, which is a good thing. In any case, I think it's better than any of the "two-headed" solutions.

Hi,

If we're using branches, I suggest the following layout:

branches
grub-legacy
trunk
tags
grub-0.97
grub-1.96
...

trunk is grub2, the current develop branch, and grub-legacy is under branches.

Signature · 1 line
Bean
#10 lore raw
Quoted 55 lines · On Thu, 17 Jul 2008 11:20:47 +0800 Bean <[email protected]> wrote:
Quoted 37 lines · Pavel Roskin
Quoted 12 lines · Yoshinori K. Okuji

I don't agree on this. GRUB Legacy and GRUB 2 are developed fully independently (if any). If we follow your way, the repository would look like this:

branches/
grub-legacy/
prepare_0_97/
prepare_0_98/
prepare_1_98/
prepare_1_99/
...

Quoted 4 lines

I feel that this has no logical structure. When we make a branch for GRUB 2, we put it under branches, when we modify the "trunk" of GRUB Legacy, we do under branches, when we make a branch for GRUB Legacy, we use branches...

Yes, that's my suggestion. I understand that you may feel uneasy about it, but I don't think we are going to do many releases from the legacy branch, maybe one or none at all.

It's OK to have stable and development branches. grub-legacy is essentially our stable branch, even though it didn't start as a branch.

CVS is inherently asymmetric. Certain things just don't work on branches the way they work on trunk. That's why it was reasonable to avoid branches with CVS for anything but release preparation.

Subversion is (more) symmetric. It's possible to develop on any branch, check the entire history of files, merge changes from other branches. Separating trunk from other branches in the standard Subversion repository layout is primarily to give comfort to CVS users, who are used to having one trunk with a special status.

Quoted 4 lines

We could have GRUB 2 under branches too and have no trunk. But having GRUB 2 as the trunk gives us the standard layout, which is a good thing. In any case, I think it's better than any of the "two-headed" solutions.

Hi,

If we're using branches, I suggest the following layout:

branches
grub-legacy
trunk
tags
grub-0.97
grub-1.96
...

Quoted 2 lines

trunk is grub2, the current develop branch, and grub-legacy is under branches.

This layout makes perfect sense if we are treating GRUB legacy and GRUB 2 as the same project, but where GRUB 2 is now the development mainline and GRUB legacy is a past release codeline.

On the other hand, if GRUB legacy and GRUB 2 are considered separate projects, then having completely separate sub-trees like:

grub-legacy/
trunk/ - 0.9x mainline
tags/
grub-0.97 - tagged release
branches/
grub/
trunk/ - GRUB 2 mainline
tags/

    grub-1.96    - GRUB v1.96 release

branches/

makes more sense. I think we could actually go either way. It's not as if there is going to be much activity on grub-legacy anyway, right?

Regards,
Colin

#11 lore raw
Quoted 13 lines · Colin D Bennett
Quoted 10 lines

If we're using branches, I suggest the following layout:

branches
grub-legacy
trunk
tags
grub-0.97
grub-1.96
...

Quoted 2 lines

trunk is grub2, the current develop branch, and grub-legacy is under branches.

Quoted 6 lines

This layout makes perfect sense if we are treating GRUB legacy and GRUB 2 as the same project, but where GRUB 2 is now the development mainline and GRUB legacy is a past release codeline.

On the other hand, if GRUB legacy and GRUB 2 are considered separate projects, then having completely separate sub-trees like:

GRUB 2 and GRUB Legacy have consistent version numbering. They are developed by the same people. They serve the same purpose. Users checking out GRUB trunk don't expect to get GRUB Legacy.

Let's take another project and look at it as outsiders to get some perspective. Suppose gcc 5 is rewritten in Haskell. Do we expect it to be in a separate repository? Do we expect to get both gcc 4 and gcc 5 when checking out gcc trunk? I don't think so. Calling the project "gcc 5" means that the lineage continues, the standard commit procedures remain in place, older versions are in branches and security updates are cut from those branches, be it gcc 3 or gcc 4. Having gcc 3 in a branch but gcc 4 and gcc 5 in the trunk would be perverse.

Signature · 2 lines
Regards,
Pavel Roskin
#12 lore raw
Quoted 21 lines · On Thursday 17 July 2008 21:10:11 Pavel Roskin wrote:
Quoted 13 lines · Colin D Bennett
Quoted 10 lines

If we're using branches, I suggest the following layout:

branches
grub-legacy
trunk
tags
grub-0.97
grub-1.96
...

Quoted 2 lines

trunk is grub2, the current develop branch, and grub-legacy is under branches.

Quoted 6 lines

This layout makes perfect sense if we are treating GRUB legacy and GRUB 2 as the same project, but where GRUB 2 is now the development mainline and GRUB legacy is a past release codeline.

On the other hand, if GRUB legacy and GRUB 2 are considered separate projects, then having completely separate sub-trees like:

Quoted 7 lines

GRUB 2 and GRUB Legacy have consistent version numbering. They are developed by the same people. They serve the same purpose. Users checking out GRUB trunk don't expect to get GRUB Legacy.

Let's take another project and look at it as outsiders to get some perspective. Suppose gcc 5 is rewritten in Haskell. Do we expect it to be in a separate repository?

Yes, I do, if it is so different. If something is rewritten from scratch, it is not continuous development but continual one. For example, just like libxml and libxml2.

Regards,
Okuji

#13 lore raw

Quoting "Yoshinori K. Okuji" <[email protected]>:

Quoted 8 lines · On Thursday 17 July 2008 21:10:11 Pavel Roskin wrote:
Quoted 3 lines

Let's take another project and look at it as outsiders to get some perspective. Suppose gcc 5 is rewritten in Haskell. Do we expect it to be in a separate repository?

Yes, I do, if it is so different. If something is rewritten from scratch, it is not continuous development but continual one. For example, just like libxml and libxml2.

OK, I presented my arguments. If they are not convincing, so be it. If we cannot use the standard layout, then the current structure is my preference, simply because moving stuff around would make the history more complex and possibly confuse some tools. Anyway, we can live with any repository structure. We just need to document it.

Signature · 2 lines
Regards,
Pavel Roskin