need help getting 'hg view' to work on dapper

Simon Cusack scusack at fastmail.com.au
Thu Nov 1 17:23:35 CDT 2007


On Tue, 30 Oct 2007 08:49:43 +0100
Patrick Mézard <pmezard at gmail.com> wrote:

> Simon Cusack a écrit :
> > On Tue, 30 Oct 2007 00:28:22 +0100
> > Patrick Mézard <pmezard at gmail.com> wrote:
> >
> >> Simon Cusack a écrit :
> >>> >From my reading this appears to be sufficient to get hgk to work but I
> >>> am getting the following error;
> >>>
> >>>     extension 'hgext/hgk' overrides commands: debug-config debug-cat-file debug-diff-tree debug-rev-parse ^view debug-rev-list debug-merge-base
> >>>     Error in startup script: k=vdiff
> >> Looks like hgk extension is already loaded. Could you check your python path for older/default installations ?
> >
> > Hi,
> >
> > I've checked the python paths and apart from the mercurial tar ball
> > the only place that contains the hgext is /usr/lib/python2.4/site-packages.
> >
> > here is the result of locate;
> >
> >   locate hgk.py
> >   /usr/lib/python2.4/site-packages/hgext/hgk.py
> >   /home/simon/packages/mercurial-0.9.5/hgext/hgk.py
> >   /home/simon/packages/mercurial-0.9.5/build/lib.linux-i686-2.4/hgext/hgk.py
> >
> > and I have verified that the one in site-packages is _exactly_ the
> > same as the tar balls.
>
> What does "hg debugconfig | grep hgk" say ?
>
> Are there multiple hgk declarations ?
>
> You may have a global hgrc somewhere already activating the extension, thus loading it twice. See hgrc man page for possible hgrc locations.
>
> --
> Patrick Mézard

Thanks Patrick, "hg debug-config" didn't help but I did have some old
config files that had been left in /etc when I had removed the
previous debian version of mercurial (0.7 - something).

So just incase anybody else has the problem here is what I did to
solve it;

  1. Removed /etc/mercurial
  2. Removed /usr/lib/python2.4/site-packages/mercurial
  3. Removed /usr/lib/python2.4/site-packages/hgext
  4. Did a "make local"
  5. Added a symlink to the hg executable to somewhere on the path
  6. Setup my .hgrc file like this;

  [ui]
  username = ...blah...blah
  editor = emacsclient

  [extensions]
  hgext.hgk=

  [hgk]
  path=/...path to.../mercurial-0.9.5/contrib/hgk

and hey presto it worked.  Thanks for the help.

regards Sim.



More information about the Mercurial mailing list