Subversion - 似乎无法建立新的存储库
最近,我决定在近乎自由语音.net 的新帐户上建立一个新的存储库。我知道有对 svn 的支持,但它似乎没有按预期工作。
例如,如果我这样做:
svnadmin create /home/private/svn/myproject
那么:
cd /home/private/svn
mkdir mytree && mkdir mytree/tags && mkdir/trunk && mkdir/branches
最后,尝试导入此:
svn import /home/private/svn/mytree file:///home/private/svn/myproject -m "Initial import"
它声称要添加文件,但实际上它们在任何地方都不存在。 /svn/myproject 保持为空,在源或目标等处都不会生成 .svn 文件夹。不会创建工作副本。
我真正想要的只是建立一个存储库来处理基于 symfony 的应用程序。
我错过了什么吗?我要疯了!感谢您的任何帮助。
Recently I decided to establish a new repository on a fresh account with nearlyfreespeech.net. I know there is support for svn, but it doesn't seem to be working as expected.
For example, if I do this:
svnadmin create /home/private/svn/myproject
then:
cd /home/private/svn
mkdir mytree && mkdir mytree/tags && mkdir/trunk && mkdir/branches
And finally, attempt to import this:
svn import /home/private/svn/mytree file:///home/private/svn/myproject -m "Initial import"
It claims to be adding the files, but they actually don't exist anywhere. /svn/myproject remains empty, no .svn folders are produced at either the source or the destination, etc. No working copy is created.
All I really want is to establish a repository to work on a symfony based application.
Am I missing something? I'm going nuts! Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您缺少签出文件的部分。您已经将该目录结构很好地导入到您的 svn 存储库中,但您尚未实际执行签出。因此,现在您只需要删除“mytree”目录(和子文件夹 - 最好不要立即删除它们,而是为了安全起见,执行签出到不同名称的目录),然后您应该能够执行以下操作:
这将导致您检出您的存储库,一切都已准备就绪!
You're missing the part where you checkout the files. You've imported that directory structure just fine into your svn repository, but you haven't actually performed a checkout. So now you just need to remove the 'mytree' directory (and subfolders - it might be better to not remove them immediately, and instead perform the checkout to a differently named directory just to be safe), then you should be able to do:
This will result in a check out of your repository and it's all set and ready to go!