QCT config file remains after 'aptitude purge' and causes errors on Mercurial startup

Bug #365990 reported by Guillem Cantallops Ramis
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qct (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: qct

The file '/etc/mercurial/hgrc.d/commit-tool.rc' is still there after 'aptitude purge qct'.

Then if you run 'hg' you always get an error like this as the first output line:

*** failed to import extension hgext/hct: Import by filename is not supported.

This is just annoying, but it doesn't have other effects AFAIK. The workaround is simply removing the config file. I think that the package should do this automatically upon installation.

ProblemType: Bug
Architecture: amd64
Dependencies:

DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: qct None [modified: /var/lib/dpkg/info/qct.list]
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: qct
Uname: Linux 2.6.28-11-generic x86_64
UnreportableReason: This is not a genuine Ubuntu package

Revision history for this message
Guillem Cantallops Ramis (beowulf) wrote :

Of course I wanted to write "upon removal", not "upon installation"!!! O:-)

Revision history for this message
Olexiy (olexiy-kyrychenko) wrote :

I confirm.
And it not just annoying: somehow it modified one of files in repo with line: "*** failed to import extension hgext/hct: Import by filename is not supported." when I used eclipse with mercurial plugin.

Revision history for this message
Thomas (thomas-pabst) wrote :

I have exactly the same problem!

DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Uname: Linux 2.6.28-13-generic x86_64 GNU/Linux

Revision history for this message
Masaki Kagaya (masakielastic) wrote :

I added following lines in $HOME/.hgrc

[extensions]
hgext.qct=!
hgext.hgconfig=!

Or comment out "hgext.qct =" in /etc/mercurial/hgrc.d/qct.rc

http://blog.seety.org/everydaywork/2008/3/25/1005/
qct: Removing causes Mercurial errors
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427829

Revision history for this message
Kenny Meyer (knny-myer) wrote :

Deleting /etc/mercurial/hgrc.d/commit-tool.rc solves this for me.

Revision history for this message
net.ricky (net-ricky) wrote :

Creating $HOME/.hgrc with that contents is unseful
What you have to do is add:

[extensions]
hgext/hct=!

to

/etc/mercurial/hgrc.d/commit-tool.rc

This solves for me
Bye
Riccardo

Revision history for this message
Honza Pokorny (honza-honzapokorny) wrote :

What Riccardo said above solved it for me. Easy solution. Thanks

Revision history for this message
Knight Samar (knightsamar) wrote :

net.ricky's trick worked for me too for hg version 1.1.2 on Ubuntu 9.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.