SVN - 如何导出修订版本
我在本地计算机(Ubuntu)上安装了 SVN,用于开发,在共享主机上运行 SVN 客户端,我使用临时服务器,我的生产服务器也有相同的设置。当我进行导出时,整个项目都会被导出,这对于小版本发布来说是荒谬的。我使用以下命令:
svn export -r 31 http://localhost.com/proj/trunk . --force --username myusername
整个项目再次导出。所以我尝试了一种不同的方法:
svn export -r 'COMMITTED' http://localhost.com/proj/trunk . --force --username myusername
然后我得到了这个错误:
svn: 'http://localhost.com/egr' is not a working copy
svn: Can't open file 'http://localhost.com/proj/.svn/entries': No such file or directory
我想知道我是否只是没有使用正确的 SVN 导出命令,或者我的 SVN 设置是否存在本质上的错误(这是我第一次配置 SVN)。
dav_svn.conf:
<Location /proj>
DAV svn
SVNPath /var/svn/proj/
AuthType Basic
AuthName "SVN Repo"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
有想法吗?请指教。
I have SVN setup on my local computer (Ubuntu) which I use for development and an SVN client running on a shared host box which I use a staging server, also my production server has the same setup. When I do an export, the entire project is getting exported which is absurd for small version release. I use the following command:
svn export -r 31 http://localhost.com/proj/trunk . --force --username myusername
And the entire project is exported once again. So I try a different way:
svn export -r 'COMMITTED' http://localhost.com/proj/trunk . --force --username myusername
I then get this error:
svn: 'http://localhost.com/egr' is not a working copy
svn: Can't open file 'http://localhost.com/proj/.svn/entries': No such file or directory
I wonder if I am just not using the correct SVN export command or if there is something inherently wrong with my SVN setup (this is my first time configuring SVN).
dav_svn.conf:
<Location /proj>
DAV svn
SVNPath /var/svn/proj/
AuthType Basic
AuthName "SVN Repo"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
Ideas? Please advise.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以指定仅要导出的文件夹/文件,例如
使用 wp svn
如果只有几个文件但位于不同的目录
You can specify the folder/files that you want to export only, like
such as using wp svn
If just few files but located on different directories
如果您想更新项目,则不应使用 svn export ,而应使用 svn commit 将更改从工作副本发送到存储库。
我想知道为什么你使用 -r 31 选项,它代表修订版本,其数量为 31。可能你想要调用的选项是 -R 选项,它代表递归目录。
You shouldn't use
svn export
if you want to update the project, you should usesvn commit
that sends changes from your working copy to the repository.I was wondering Why are you using the -r 31 option this stands for revisions and the amount of them which are 31. Probably the option you want to invoke is the -R option which stands for recursing the directories.