从 Visual Sourcesafe 迁移到 Mercurial

发布于 2024-07-22 15:00:03 字数 67 浏览 2 评论 0原文

将 Visual Sourcesafe 存储库移动到 Mercurial 的最佳方法是什么(我有兴趣保留所有历史记录)?

What's the best way to move a Visual Sourcesafe repository to Mercurial (I'm interested in retaining all history)?

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

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

发布评论

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

评论(6

清欢 2024-07-29 15:00:03

虽然我还没有进行特定的转换,但我已经使用 (IIRC) 此脚本。 您可能想要研究裁缝并搜索 vss2hg。 另请记住,执行 vss2svn + svn2hg 或类似的中间步骤可能是有意义的。

我给出的主要建议是:编写转换脚本,以便您可以轻松地重新运行它。 这将让您每晚运行从 VSS 到 Hg 的转换,并确保在您触发之前一切都正确转换。

While I haven't made that particular conversion, I have gone from VSS to SVN using (IIRC) this script. You'll probably want to look into tailor and do a search for vss2hg. Also keep in mind that it may make sense to go through an intermediate step like vss2svn + svn2hg or similar.

The primary bit of advice I'd give though is: script the conversion so you can re-run it easily. That will let you run nightly conversions from VSS to Hg and make sure that everything is converting correctly before you pull the trigger on it.

青丝拂面 2024-07-29 15:00:03

我是 vss2hg.pl 脚本的作者,并使用它将许多项目从 VSS 迁移到 Mercurial。 它有一两个小错误,其中一些评论没有完全转换,但我没有看到任何其他问题。 它转换完整的历史记录并解决 VSS 的问题,即用户的 PC 时钟可能会影响更改的显示顺序。

此处提供了该脚本的版本。

I am the author of the vss2hg.pl script and have used it to move many projects from VSS to Mercurial. It has one or two minor bugs where some comments are not completely converted but I haven't seen any other issues. It converts complete history and works-around a problem with VSS where a user's PC clock can affect the order in which changes appear to be made.

A version of the script is available here.

恰似旧人归 2024-07-29 15:00:03

我使用了此处中的 vss2hg.pl 脚本。 它是一个Perl脚本,因此您需要先安装ActivePerl

它效果很好,但我遇到了日期问题。 事实证明,该脚本支持三种日期格式。 默认情况下,它设置为英国日期格式(第 547 行)。 其他两种日期格式已在代码中注释掉。 启用美国日期格式后,该脚本可以毫无问题地转换我的 SourceSafe 数据库。

I used the vss2hg.pl script from here. It is a Perl script, so you need to install ActivePerl first.

It worked great, but I ran into a problem with the dates. It turns out that the script supports three kinds of date formats. By default it is set to the UK date format (in line 547). The other two date formats are commented out in the code. After enabling the US date format, the script converted my SourceSafe database without a problem.

丿*梦醉红颜 2024-07-29 15:00:03

Mercurial wiki 有此页面,您可能会感兴趣:https://www.mercurial-scm .org/wiki/SourceSafeConversion。 我从来没有使用过 Visual source safe,所以我没有任何个人经验。

我还发现了关于该主题的 来自 Patrick Mézard 的邮件,但不幸的是,他写道 VSS 转换器将是难的。 他还谈到了首先转换为 Subversion,然后从 Subversion 转换为 Mercurial。 我猜这意味着有 VSS -> SVN 在那里进行转换。 你也许可以自己用谷歌搜索一下。

The Mercurial wiki has this page, which might be of interest: https://www.mercurial-scm.org/wiki/SourceSafeConversion. I've never used Visual source safe, so I don't have any personal experience with it.

I also found a mail from Patrick Mézard about the subject, but unfortunately he writes that a VSS converter will be difficult. He also talks about converting to Subversion first, and then from Subversion to Mercurial. I guess that means that there are VSS -> SVN converts out there. You can probably google that yourself.

尾戒 2024-07-29 15:00:03

我已经为客户完成了从 SourceSafe 到 Mercurial 的转换。 我首先将 SourceSafe 数据库转换为 Subversion 存储库,然后使用 hg 转换扩展从 Subversion 转换为 Mercurial。 有关详细信息,请参阅我的博文

I have done a conversion from SourceSafe to Mercurial for a client. I first converted the SourceSafe database to a Subversion repository and then from Subversion to Mercurial using the hg convert extension. See my blog post for details.

甜妞爱困 2024-07-29 15:00:03

我刚刚尝试使用 vss2hg 并遇到了一个问题,它只接收并转换了 1 个用户。 这意味着我的所有变更集等都将不准确,因为我无法看到是谁做的。 这是因为我没有在 hg 中预先设置所有必需的用户吗?

I just tried using vss2hg and ran into a problem that it only pickup up and converted 1 user. This means all my changesets etc will not be accurate as I won't be able to see who did them. Is this because I've not pre-setup all the required users in hg?

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