简体   繁体   English

将目录结构添加到SVN Repo

[英]Adding Directory Structure To SVN Repo

I've never administered an svn repository before, although I have used svn for version control. 我以前从未管理过svn存储库,尽管我已经使用svn进行版本控制。 I set up an svn repository on a RHEL 5 server using the following tutorial: http://mark.koli.ch/2010/03/howto-setting-up-your-own-svn-server-using-apache-and-mod-dav-svn.html 我使用以下教程在RHEL 5服务器上设置了一个svn存储库: http//mark.koli.ch/2010/03/howto-setting-up-your-own-svn-server-using-apache-and- MOD-DAV-svn.html

Everything is working smoothly as it, but my repository doesn't have the tradition trunk/branch/tags structure. 一切都很顺利,但我的存储库没有传统的trunk / branch / tags结构。 I set up a new repository, and used mkdir to add "tags", "trunk", and "branches" folders, and then tried checking out a working copy on another machine. 我设置了一个新的存储库,并使用mkdir添加“tags”,“trunk”和“branches”文件夹,然后尝试在另一台机器上检出工作副本。 It checks out at revision 0, but without the directory structure. 它在版本0检出,但没有目录结构。 I'm guessing that simply adding those folders isn't enough. 我猜测只是添加这些文件夹是不够的。

Can someone please explain what I would need to do so that when I check out a working copy I get the whole directory structure? 有人可以解释我需要做什么,以便当我查看工作副本时,我得到整个目录结构?

FOLLOW UP QUESTION Thanks to everyone who chimed in. I created two test repositories to play with, and now wish to delete them. 关注问题感谢所有参与其中的人。我创建了两个测试存储库,现在希望删除它们。 Is it really just as simple as removing the folders from the server? 它真的像从服务器中删除文件夹一样简单吗? I googled "svnadmin remove repo" and I get info on using the svn remove command, but that's to remove a file from a repository. 我用google搜索“svnadmin remove repo”,我获得了有关使用svn remove命令的信息,但这是从存储库中删除文件。 I want to completely remove a repository. 我想完全删除存储库。

One missing step in your story is the point when you commit your tags/trunk/branches directories, did you do the commit ? 你的故事中缺少一个步骤是当你提交你的标签/主干/分支目录时,你做了提交吗?

eg 例如

svn co http://my_repo/ .

mkdir tags
mkdir trunk
mkdir branches

svn add tags
svn add trunk
svn add branches

svn ci . -m "definitely add those directories to the repository"

If you don't feel like committing and want to automate it: 如果您不想提交并希望自动化它:

svnadmin create /path/to/repo
svn mkdir file:///path/to/repo/trunk
svn mkdir file:///path/to/repo/tags
svn mkdir file:///path/to/repo/branches

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM