SVN - 如何导出修订版本

发布于 2024-10-07 06:29:34 字数 935 浏览 6 评论 0原文

我在本地计算机(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝色星空 2024-10-14 06:29:34

您可以指定仅要导出的文件夹/文件,例如

使用 wp svn

svn export -r 16873 http://core.svn.wordpress.org/branches/2.8/wp-admin/css

如果只有几个文件但位于不同的目录

mkdir {css,image}
svn export -r 16873 http://core.svn.wordpress.org/branches/2.8/wp-admin/css/install.css css/install.css
svn export -r 16873 http://core.svn.wordpress.org/branches/2.8/wp-admin/images/menu-arrows.gif images/menu-arrows.gif

You can specify the folder/files that you want to export only, like

such as using wp svn

svn export -r 16873 http://core.svn.wordpress.org/branches/2.8/wp-admin/css

If just few files but located on different directories

mkdir {css,image}
svn export -r 16873 http://core.svn.wordpress.org/branches/2.8/wp-admin/css/install.css css/install.css
svn export -r 16873 http://core.svn.wordpress.org/branches/2.8/wp-admin/images/menu-arrows.gif images/menu-arrows.gif
脱离于你 2024-10-14 06:29:34

如果您想更新项目,则不应使用 svn export ,而应使用 svn commit 将更改从工作副本发送到存储库。

我想知道为什么你使用 -r 31 选项,它代表修订版本,其数量为 31。可能你想要调用的选项是 -R 选项,它代表递归目录。

You shouldn't use svn export if you want to update the project, you should use svn 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文