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?
将.hgrc放在主目录中,请参见手册: hgrc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.