在 Linux 上运行 hg Convert

发布于 2024-08-13 06:32:06 字数 853 浏览 2 评论 0原文

我想将远程 Perforce 存储库转换为 Linux 上的 Mercurial 存储库。 所以我在 Linux 机器上安装了 Python 和 Mercurial。

然后我测试了一些 hg(Mercurial 的驱动程序)命令。 一切正常

现在,无需在 Linux 机器上创建任何 hg 存储库,我想在 Linux 上运行 hg Convert,以便在其上创建 Mercurial 存储库(Perforce 存储库)。

但是当我尝试“hg Convert”命令时它不起作用。我知道需要在 .hgrc 文件中配置“convert”扩展名。但我这里没有任何 hg 存储库。

Linux 上有没有什么地方可以 我可以使用 Convert 创建 hgrc 文件 扩展,以便 hg Convert 命令将是 我可以访问吗?

我应该首先创建一个hg init hgrepo 在 Linux 上,然后编辑 .hg/hgrc 文件 正确配置然后执行 hg 转换 //perforce repo/.. /root/hgrepo 在 hgrepo 上?

我可以做什么来解决这个问题?

I would like to convert a remote Perforce repository into a Mercurial repository on Linux.
So I have installed Python and Mercurial on a Linux box.

Then I test few hg (Mercurial's drive program) commands. All are working fine.

Now without creating any hg repository on the Linux box I want to run hg convert on Linux, so that a Mercurial repository (of a Perforce repository) will be created on it.

But when I tried the "hg convert" command it was not working. I know "convert" extension needs to be configured in the .hgrc file. But I don't have any hg repositories here.

Is there any any place on Linux where
I can create hgrc file with convert
extension so that hg convert command will be
accessible for me?

or

Should I first create a hg init
hgrepo
on Linux and then edit .hg/hgrc file with
proper configurations and then perform
hg convert //perforce repo/.. /root/hgrepo on hgrepo?

What can I do to resolve this issue?

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

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

发布评论

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

评论(1

乙白 2024-08-20 06:32:06

将 .hgrc 放在主目录中,请参阅手册:hgrc

Place your .hgrc in your home directory, see the manual: hgrc

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