我应该添加新的SVN存储库还是新文件夹?

时间:2021-06-17 07:28:05

Have one application in SVN (on unfuddle.com). Want to add a new application (related to, but independent of the existing one).

在SVN中有一个应用程序(在unfuddle.com上)。想要添加新应用程序(与现有应用程序相关,但独立于现有应用程序)。

Today I have: repo1/root/app1

今天我有:repo1 / root / app1

Should I add the new application in a new repository or in a new folder ?

我应该在新存储库或新文件夹中添加新应用程序吗?

i.e. should I use option1:
repo1/root/app1
repo1/root/app2

即我应该使用option1:repo1 / root / app1 repo1 / root / app2

or option2:
repo1/root/app1
repo2/root/app2

或者option2:repo1 / root / app1 repo2 / root / app2

?

2 个解决方案

#1


Do like you want and what makes less hassle. Both decisions can be reverted: The directory in the repository can be extracted and imported to a new repository, or the separate repository can be imported into the first one. I don't think any of the approaches is significant better. So choose freely. I think your decision will mainly be influenced by the question, who has access to project1 and project2. If this are the same users you are fine with one repository.

喜欢你想要什么,减少麻烦。可以还原这两个决策:可以提取存储库中的目录并将其导入新存储库,也可以将单独的存储库导入到第一个存储库中。我认为任何方法都不会更好。所以*选择。我认为您的决定将主要受到有权访问project1和project2的问题的影响。如果这是相同的用户,您可以使用一个存储库。

At work we are a little team (less than 10 developers) and have chosen to put all projects into the same repository with different subdirectories.

在工作中,我们是一个小团队(少于10个开发人员),并选择将所有项目放入具有不同子目录的相同存储库中。

EDIT: As I talked about someone else about it, I discovered one problem: The possibility to freely move projects between repositories is limited to users, which have administrative access to the repository. As someone who decides if a projects gets a directory or a repository of it's own administrative access is likely. But if you cannot the repository in this way, it gets hard or impossible to later move the project to another repository. In this case this question has to be considered more carefully.

编辑:当我谈到其他人时,我发现了一个问题:在存储库之间*移动项目的可能性仅限于具有对存储库的管理访问权限的用户。作为决定项目是否获得目录或存储库的人,可能会拥有自己的管理访问权限。但是如果你不能以这种方式存储库,那么以后很难或不可能将项目移动到另一个存储库。在这种情况下,必须更仔细地考虑这个问题。

#2


On my own work, if they are somewhat related I usually put them in the same repo in a different folder, but if they are not related in any way then I usually put them in different repos. I think its mostly a matter of choice unless you're working on a large project with many many MB of files.

在我自己的工作中,如果它们有点相关,我通常将它们放在不同文件夹中的相同仓库中,但如果它们没有任何关联,那么我通常将它们放在不同的回购中。我认为它主要是一个选择问题,除非你正在处理一个包含许多MB文件的大型项目。

#1


Do like you want and what makes less hassle. Both decisions can be reverted: The directory in the repository can be extracted and imported to a new repository, or the separate repository can be imported into the first one. I don't think any of the approaches is significant better. So choose freely. I think your decision will mainly be influenced by the question, who has access to project1 and project2. If this are the same users you are fine with one repository.

喜欢你想要什么,减少麻烦。可以还原这两个决策:可以提取存储库中的目录并将其导入新存储库,也可以将单独的存储库导入到第一个存储库中。我认为任何方法都不会更好。所以*选择。我认为您的决定将主要受到有权访问project1和project2的问题的影响。如果这是相同的用户,您可以使用一个存储库。

At work we are a little team (less than 10 developers) and have chosen to put all projects into the same repository with different subdirectories.

在工作中,我们是一个小团队(少于10个开发人员),并选择将所有项目放入具有不同子目录的相同存储库中。

EDIT: As I talked about someone else about it, I discovered one problem: The possibility to freely move projects between repositories is limited to users, which have administrative access to the repository. As someone who decides if a projects gets a directory or a repository of it's own administrative access is likely. But if you cannot the repository in this way, it gets hard or impossible to later move the project to another repository. In this case this question has to be considered more carefully.

编辑:当我谈到其他人时,我发现了一个问题:在存储库之间*移动项目的可能性仅限于具有对存储库的管理访问权限的用户。作为决定项目是否获得目录或存储库的人,可能会拥有自己的管理访问权限。但是如果你不能以这种方式存储库,那么以后很难或不可能将项目移动到另一个存储库。在这种情况下,必须更仔细地考虑这个问题。

#2


On my own work, if they are somewhat related I usually put them in the same repo in a different folder, but if they are not related in any way then I usually put them in different repos. I think its mostly a matter of choice unless you're working on a large project with many many MB of files.

在我自己的工作中,如果它们有点相关,我通常将它们放在不同文件夹中的相同仓库中,但如果它们没有任何关联,那么我通常将它们放在不同的回购中。我认为它主要是一个选择问题,除非你正在处理一个包含许多MB文件的大型项目。