failed to import error/warning

Martin Geisler mg at daimi.au.dk
Mon Sep 8 01:14:57 CDT 2008


"Patrick Waugh" <ptwaugh at gmail.com> writes:

Hi Patrick,

(You're replying off-list)

> On Sun, Sep 7, 2008 at 8:47 AM, Martin Geisler <mg at daimi.au.dk> wrote:
>> Ah, that explains it! The Debian/Ubuntu package enables various
>> extensions, and since you installed the old version you'll have
>>
>>  /etc/mercurial/hgrc.d/hgext.rc
>>
>> file -- I think that is your problem.
>
> Yes, that was it. I edited the file and removed the offending
> section.
>
> First, I did:
>
> sudo apt-get remove mercurial
>
> to get rid of version 0.9, but since it did not remove the
> /etc/mercurial/hgrc.d/hgext.rc, I left it alone.

The apt system leaves configuration files behind when you remove a
package. You have to *purge* the package to remove config files too.
So try:

  apt-get --purge remove mercurial

or you use

  aptitude purge mercurial

The advantage of aptitude is that it can also track which libraries
were installled as a dependency and remove them as well.

> Is that file no longer needed?  What can I remove (if anything) since
> I have 1.0.2 compiled and installed now?


-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.


More information about the Mercurial mailing list