源代码控制:处理同一目录中文件的不同项目

发布于 2024-10-31 07:58:31 字数 690 浏览 2 评论 0原文

我们正在使用一个对于创建项目至关重要的工具,该工具将文件放在其文件结构中。例如,

代码可能像这样存储

  • root/code/project1
  • root/code/project2
  • root/code/project3

一些关联的安装文件可能位于另一个目录

  • root/setupfile/project1
  • root/setupfile/project2
  • /setupfile/project3

root 中这适用于许多目录,并且比上面的简化示例更加嵌套。这些项目的文件必须位于这些位置,否则将无法使用。

我们使用一个软件在外部套件上运行我们的项目,它需要这种相当奇怪的设置。该软件只能在 Windows 上运行。

什么样的源代码控制系统可以处理这种布局? (我的主要经验是SVN,所以这是我的参考点) 理想情况下,我们只想检查我们当前正在进行的项目。如果明天能够查看特定项目的所有文件,那就太好了。

我可以使用 SVN 并将根目录放入 SVN,但是挑选并签出与一个项目关联的所有这些文件有点麻烦。我无法将项目放入单独的 SVN 存储库中,因为它们无法签出到同一目录中。

如有任何建议,我们将不胜感激!

编辑:

我认为符号链接可能是可行的方法 - 感谢您的帮助!

We're using a tool that is vital to create our projects which puts files all over it's filestructure. For instance

The code might be stored like so

  • root/code/project1
  • root/code/project2
  • root/code/project3

Some associated setup files might be in another directory

  • root/setupfile/project1
  • root/setupfile/project2
  • root/setupfile/project3

It does this for a number of directories and it's a bit more nested than the simplified example above. These projects must have their files in these locations or else they can't be used.

We use a piece of software to run our projects on an external piece of kit and it requires this rather odd setup. The software can only be run from Windows.

What kind of source control system can handle this kind of layout? (My main experience is SVN so that's my reference point)
Ideally we'd only want to checkout the projects that we're currently working on. It would be nice to view all files from a particular project tomorrow.

I could use SVN and put the root in SVN but then it's a little tiresome to pick out and checkout all these files associated with one project. I can't put the project into separate SVN repos because they can't be checked out into the same directory.

Any suggestions would be gratefully received!

Edit:

I think Symlinks are probably the way to go - thanks for the help!

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

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

发布评论

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

评论(1

看春风乍起 2024-11-07 07:58:31

使用符号链接怎么样?例如,假设我将 svn 中的项目检出到:

  • /working-copies/project1
  • /working-copies/project2
  • /working-copies/project3

然后创建符号链接(我在这里使用 *nix 语法):

  • ln -s /working -copies/project1/src root/code/project1
  • ln -s /working-copies/project2/src root/code/project2
  • ln -s /working-copies/project3/src root/code/project3
  • ln -s /working-copies /project1/config root/setupfile/project1
  • ln -s /working-copies/project2/config root/setupfile/project2
  • ln -s /working-copies/project3/config root/setupfile/project3

这是否满足您的需要工具?

How about using symbolic links? For example, suppose I checkout the projects from svn into:

  • /working-copies/project1
  • /working-copies/project2
  • /working-copies/project3

Then create symbolic links (I'm using *nix syntax here):

  • ln -s /working-copies/project1/src root/code/project1
  • ln -s /working-copies/project2/src root/code/project2
  • ln -s /working-copies/project3/src root/code/project3
  • ln -s /working-copies/project1/config root/setupfile/project1
  • ln -s /working-copies/project2/config root/setupfile/project2
  • ln -s /working-copies/project3/config root/setupfile/project3

Does this get you what you need for this tool?

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