--similarity option for hg convert ?

Philippe De Muyter phdm at macqel.be
Tue Jul 7 09:07:11 CDT 2009


On Tue, Jul 07, 2009 at 09:59:54AM -0400, Greg Ward wrote:
> 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.

That doesn't work yet, but it seems to do a little bit more :

phdm at frolo:/archives/programs/external/hg> PYTHONPATH=/archives/programs/external/hg/pyfastimport hg help fastimport
*** failed to import extension fastimport from /archives/programs/external/hg/hg-fastimport/hgfastimport: No module named hgfastimport.hgimport
                                          ^^^^^^^^^^^^^^^^^^^^^
fastimport extension - no help text available

no commands defined

Philippe


More information about the Mercurial mailing list