Bug 638529

Summary: hg reports version 'unknown'
Product: [Fedora] Fedora EPEL Reporter: Felix Schwarz <fschwarz>
Component: mercurialAssignee: Dennis Gilmore <dennis>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: el4CC: dennis, mmcgrath
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-01 20:02:27 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:

Description Felix Schwarz 2010-09-29 09:40:21 UTC
…/python2.3/site-packages/mercurial/__version__.py contains 
  version = "unknown"
when it should say:
  version = "1.2"

Therefore hg on el4 reports a bad version number which makes it impossible for other software to support multiple versions of hg (as they can not use the correct API which changed between hg versions). For the example the trac mercurial plugin (not packaged in Fedora) will cause exceptions in certain situations (see http://trac.edgewall.org/ticket/9611#comment:5).

I confirmed that manually setting the correct version in __version__.py fixes the problem. To me it looks like some missing buildrequires.

Comment 1 Kevin Fenzi 2012-03-01 20:02:27 UTC
EPEL-4 has reached end of life and is no longer supported. 

Please retest your bug against EPEL-5 or EPEL-6 and re-open if the bug persists in the packages available in those releases, or file a new bug. 

See: http://lists.fedoraproject.org/pipermail/epel-announce/2012-February/000015.html