我可以使用 svn_load_dirs.pl 或类似工具自动覆盖存储库文件吗?

发布于 2024-08-17 05:19:43 字数 345 浏览 2 评论 0原文

我正在使用旧的 VSS 存储库,该存储库几个月前已转移到新的 SVN 存储库。与此同时,在我们使用 SVN 存储库之前,我们需要引入从那时到现在 VSS 存储库上发生的所有更改。

我正在寻找不同的方法来做到这一点,这似乎是这样的:

1.) svn_load_dirs.pl 然后手动合并文件? 2.) svn import直接到主干并手动合并文件 3.) 签出我的 SVN 存储库的工作副本,复制更改的文件,这将覆盖我的工作副本中的一些文件,然后提交更改。

我的问题是,是否可以使用这些选项中的任何一个(或任何其他选项)来自动化操作,以便我不必合并文件,而是可以覆盖它们?我认为只有选项 3 可以做到这一点,但我们将不胜感激。

I am working with a legacy VSS repository which was transferred over to a new SVN repository a few months ago. In the meantime, before we go live with the SVN repository, we need to bring over all the changes that have happened on the VSS one between then and now.

I was looking at different ways to do this which seem to be things such as:

1.) svn_load_dirs.pl then merge the files manually?
2.) svn import straight into the trunk and merge files manually
3.) checkout a working copy of my SVN repository, copy in the changed files which will overwrite some of the ones in my working copy then commit the changes.

My question is, can any of these options be used (or any other options) to automate things so that I don't have to merge the files, and can instead just overwrite them? I think only Option 3 would do this but any help is appreciated.

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

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

发布评论

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

评论(1

调妓 2024-08-24 05:19:43

自从第一次导入 VSS 存储库中的代码以来,您是否对它进行过任何操作?如果没有,那么我可能会删除整个 Subversion 存储库,然后将 VSS 中的代码重新导入到新的 Subversion 存储库中。这样,您将保留所有 VSS 历史记录,而无需编写一次性导入脚本来仅提取自上次导入以来的更改。

为了更加确定,您可以在导入 Subversion 之前将整个 VSS 存储库设置为只读(这样就不会有人意外修改它)。

Have you done anything with the code in the VSS repository since you first imported it? If not, then I would probably delete the whole Subversion repository, then reimport the code in VSS back into a fresh Subversion repository. That way you'll preserve all the VSS history without having to write a one-off import script to pull in just the changes since the last import.

To be extra sure, you could make the entire VSS repository read-only (so nobody accidentally modifies it) before you do the import into Subversion.

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