SVN:从同一目录中签出其他项目

发布于 2024-12-28 06:34:07 字数 683 浏览 1 评论 0原文

我们正在使用 subclipse 来检查代码。每个项目在SVN中的位置如下:

http://127.0.0.1/svn/app/project001
http://127.0.0.1/svn/app/project002
http://127.0.0.1/svn/app/project003
...
http://127.0.0.1/svn/app/project601

所有项目都需要签出。

在 Eclipse 中创建新工作区时这不是问题,因为可以选择所有现有项目。然而,当创建一个新项目时,例如http://127.0.0.1/svn/app/project003a,很容易错过它。

理想情况下,我想突出显示所有现有项目,右键单击,团队同步,并让已添加的任何新项目(在现有项目级别)自动显示在同步视图中。目前这种情况还没有发生(我理解其原因)。

我们当前的解决方案是进入 SVN Repository Exploring 视图,重新签出所有内容,并在 eclipse 询问我们想要覆盖现有目录时单击“否”。这是一个明显的不便,尤其是对于如此多的项目。

我们尝试使用 psf 文件来管理要签出的项目,但发现人们忘记更新它们(包括我自己......)。

有没有人对如何管理这个有更好的建议?它也不必通过 eclipse 完成,但是在尝试 svn 命令行之后我不确定更好的方法。

We are using subclipse to check out code. Each project is located in SVN as follows:

http://127.0.0.1/svn/app/project001
http://127.0.0.1/svn/app/project002
http://127.0.0.1/svn/app/project003
...
http://127.0.0.1/svn/app/project601

All projects are required to be checked out.

This is not a problem when creating a new workspace in eclipse, as all the existing projects can be selected. However, when a new project is created, e.g. http://127.0.0.1/svn/app/project003a, it can be easily missed.

Ideally, I would like to highlight all the exusting projects, right click, team synchronise, and have any new projects that have been added (at the level of the existing projects) automatically show in the synchronise view. This currently does not happen (and I understand the reasons why).

Our current solution is to go to SVN Repository Exploring view, and re-checkout everything, and click no whenever eclipses asks to we want to overwrite existing directories. This is an obvious inconvenience, especially with so many projects.

We tried using psf files, to manage the projects to be checked out, but found people forget to update them (myself included...).

Does anyoe have any better suggestions of how to manage this? It does not have to be done via eclipse either, but after experimenting with svn command line I am unsure of a better way.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

⊕婉儿 2025-01-04 06:34:07

所有项目是否都在同一个本地文件夹下检出?

即在 /work/ 下:

work/project001
work/project002
work/project003
...
work/project601

然后您可以在名称 work 下签出项目父目录 app

$ svn co http://127.0.0.1/svn/app/ work/

每次您需要更新所有现有的项目/签出新项目,运行svn update

work$ svn update
U existing projects updated
A new projects added

Are all the projects checked out under the same local folder?

I.e. under /work/:

work/project001
work/project002
work/project003
...
work/project601

Then you can checkout projects parent directory app under the name work:

$ svn co http://127.0.0.1/svn/app/ work/

And every time you need to update all your existing project / checkout new projects, run svn update:

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