添加新的 SVN“repo”回购协议/项目设置不当
不幸的是,这个问题的答案并不像听起来那么简单……但我希望它仍然相对简单。请先通读一遍,然后告诉我答案是:“svnadmin create...duh”
我正在为一家以奇怪的方式设置 SVN 服务器的公司工作(至少就我所使用的方式而言)到)。我们都去过那里,对吧?
他们没有为每个项目提供一个单独的存储库...它们在服务器上有一个名为“/var/www/svn/repos/”的文件夹,这是实际的 SVN 存储库(有 conf/、db/、README.txt 等)。在其中)。然后他们通过将顶级文件夹添加到 ONE 存储库(例如:Project1、Project2 等)来区分他们的项目。
我不喜欢这种设置,可能有一天会抽出时间将设置转换为我习惯的设置,其中每个项目都有自己的存储库(具有单独的日志、数据库等),
但我的问题是:将新的空项目添加到当前设置的最佳方法是什么?无论如何,是否可以通过使用 svnadmin 将新的顶级文件夹/项目添加到存储库?它可以/应该只是一个空文件夹,我将开始在其中构建一个新项目。
我知道我可以通过检查整个单一存储库,然后将一个新的顶级文件夹添加到我的本地结帐中,然后重新-承诺。但我真的不想这样做,因为有人创建了只有 GB 日志数据的文件夹/项目......而且我不想等待下载它只是为了添加一个空文件夹。
如果您需要了解更多信息,请告诉我。我确实在相关服务器上具有 root/sudo 访问权限。
预先感谢您的帮助!
Dave
编辑:这家公司使用 SVN 的方式,没有人检查完整的存储库...他们只是检查他们感兴趣的文件夹/项目。所以我没有可以在任何地方进行本地结帐“在 SVN 存储库目录结构中“足够高”,足以运行“svn mkdir”命令。
Unfortunately, the answer to this question isn't quite as simple as it sounds... but I hope it can still be relatively simple. Please read all the way through before telling me that the answer is: "svnadmin create... duh"
I'm working for a company that set up their SVN server in an odd way (at least in terms of what I'm used to). We've all been there, right?
Rather than giving each project a separate repository... they have a folder on the server called "/var/www/svn/repos/" which is the actual SVN repo (has conf/, db/, README.txt, etc. in it). Then they distinguish their projects by adding top level folders into the ONE repository (ex: Project1, Project2, etc.)
I don't like this setup and might one day get around to converting the setup to what I'm used to, where each project is its own repository (with separate logs, dbs, etc.)
But my question is this: What is the best way to add a new empty project to the current setup? Is there anyway to add a new top level folder/project to the repo through use of svnadmin? It can/should just be an empty folder that I'll start building a new project in.
I know that I could do this by checking out the whole singular repository and then adding a new top level folder into my local checkout, then re-committing. But I'd really prefer not to do this because someone has created folders/projects that are just GBs of log data... and I don't want to wait through the download of this just to add a single empty folder.
Let me know if there is any more info you'd need to know. I do have root/sudo access on the server in question.
Thanks in advance for your help!
Dave
EDIT: The way that SVN is used at this company, no one checks out the full repo... they just check out the folder/project they are interested in. So I don't have a local checkout available anywhere that goes "high" enough in the SVN repo directory structure to just run a "svn mkdir" command.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,这实际上是一种常见的做法。要创建新的项目路径,只需使用所选的 Subversion 客户端以新项目的名称创建与其余项目处于同一级别的新路径。
Well, this is actually a common practice. To create a new project path, just use the Subversion client of choice to create a new path at the same level with the rest of the projects with the name of the new project.