abort: cannot find required "p4" tool

Villu Ruusmann villu.ruusmann at gmail.com
Fri Mar 27 16:06:50 CDT 2009


Hello there,

> I'm trying to run hg convert on Mac OS X and I get this error even though
> p4-merge is installed and configured in ~/.hgrc.
>
> Any ideas?

I encountered the same error when trying to convert a Subversion
repository on Windows.

Take a look at the source code of the 'convert' extension. There is a
list of supported VCSes - Subversion is somewhere in the middle,
whereas Perforce is in the end. This list is walked though when you
launch conversion against some repository. Your Hg setup fails to
detect the repository as a Subversion repository, because otherwise it
wouldn't bother testing the Perforce option.

The "Converting from Subversion"-section of the ConvertExtension wiki
page http://www.selenic.com/mercurial/wiki/index.cgi/ConvertExtension
states that for proper Subversion support the Subversion's Python
bindings are a prerequisite. It took me awhile to locate the required
libraries on http://subversion.tigris.org site, but once I got them
installed, the conversion went flawlessly.


VR


More information about the Mercurial mailing list