--similarity option for hg convert ?
Greg Ward
greg-hg at gerg.ca
Tue Jul 7 08:59:54 CDT 2009
On Tue, Jul 7, 2009 at 6:11 AM, Philippe De Muyter<phdm at macqel.be> wrote:
> I have cloned pyfastimport and hg-fastimport, made the symbolic link, and
> added fastimport in the [extensions] section of my ~/.hgrc.
>
> phdm at frolo:/archives/programs/external/hg> ls -l *
> hg-fastimport:
> total 32
> -rw-r--r-- 1 phdm users 17987 2009-07-07 11:52 COPYING
> lrwxrwxrwx 1 phdm users 26 2009-07-07 11:57 fastimport -> ../pyfastimport/fastimport
> drwxr-xr-x 2 phdm users 4096 2009-07-07 11:58 hgfastimport
> -rw-r--r-- 1 phdm users 3871 2009-07-07 11:52 README.txt
> drwxr-xr-x 2 phdm users 4096 2009-07-07 11:52 tests
[...]
> phdm at frolo:/archives/programs/external/hg> hg help fastimport
> *** failed to import extension fastimport from /archives/programs/external/hg/hg-fastimport/hgfastimport: No module named fastimport
Ahh, I think I get it. My instructions are to blame; I must have
misunderstood how Hg finds/loads extensions. The problem is that the
directory containing the 'fastimport' package is not in Python's
search path. The solution, I think, is to stick with the filesystem
layout you have, but run
PYTHONPATH=/archives/programs/external/pyfastimport hg help fastimport
If that works, I should probably do something in hg-fastimport to make
it automatic. For now, I've just updated the wiki page.
Greg
More information about the Mercurial
mailing list