Bug 663183
Summary: | [abrt] mercurial-1.7.2-1.fc13: cmdutil.py:28:findpossible:AttributeError: 'NoneType' object has no attribute 'keys' | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ville Skyttä <ville.skytta> | ||||
Component: | mercurial | Assignee: | Neal Becker <ndbecker2> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 13 | CC: | dennis, mads, mmcgrath, ndbecker2, vvitek | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | abrt_hash:9475a643 | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-12-25 23:48:38 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Ville Skyttä
2010-12-14 21:47:54 UTC
Created attachment 468709 [details]
File: backtrace
This must have been caused by an invalid extension. Please check "hg showconfig --debug extensions" and see if the problem goes away by disabling one of the extensions. $ hg showconfig --debug extensions read config from: /usr/etc/mercurial/hgrc read config from: /etc/mercurial/hgrc read config from: /etc/mercurial/hgrc.d/mergetools.rc read config from: /home/scop/.hgrc /home/scop/.hgrc:5: extensions.hgext.convert= /home/scop/.hgrc:6: extensions.hgext.fetch= If I read that correctly, I have the convert and fetch extensions enabled. Disabling them does not make any difference, it still backtraces the same way with "hg foo". $ hg showconfig --debug extensions read config from: /usr/etc/mercurial/hgrc read config from: /etc/mercurial/hgrc read config from: /etc/mercurial/hgrc.d/mergetools.rc read config from: /home/scop/.hgrc $ hg foo hg: unknown command 'foo' Traceback (most recent call last): File "/usr/bin/hg", line 38, in <module> mercurial.dispatch.run() [...same backtrace as before...] Hmm, yeah. When the command isn't found it tries to load all extensions even though they haven't been enabled to see if the command is defined by any of these. Can you try to add some debugging to mercurial/extensions.py around line 260 and print cmd, name and path and see when the problem happens? Is there some extension-like file somewhere with some special content that makes it bail out? I didn't add any debugging yet, but removed the mercurial-forest extension I had installed and that got rid of the problem (source and binary rpms at http://cachalot.mine.nu/ if you're interested). Seems to me that hg should be more careful when doing what it does for unknown commands; disabled extensions might be disabled for a reason after all :) http://hg.intevation.org/mercurial/crew/rev/1aea66b71f4f has been committed upstream and will be included in Mercurial 1.8. |