libreport version: 2.0.10 abrt_version: 2.0.10 cmdline: /usr/bin/python /usr/bin/hg relink executable: /usr/bin/hg kernel: 3.3.7-1.fc17.x86_64 time: 2012-05-30T14:53:42 CEST uid: 1000 username: sjoerd backtrace: :util.py:1189:bytecount:NameError: global name 'units' is not defined : :Traceback (most recent call last): : File "/usr/bin/hg", line 38, in <module> : mercurial.dispatch.run() : File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 27, in run : sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) : File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 64, in dispatch : return _runcatch(req) : File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 87, in _runcatch : return _dispatch(req) : File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 685, in _dispatch : cmdpats, cmdoptions) : File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 467, in runcommand : ret = _runcommand(ui, options, cmd, d) : File "/usr/lib64/python2.7/site-packages/mercurial/extensions.py", line 184, in wrap : return wrapper(origfn, *args, **kwargs) : File "/usr/lib64/python2.7/site-packages/hgext/pager.py", line 107, in pagecmd : return orig(ui, options, cmd, cmdfunc) : File "/usr/lib64/python2.7/site-packages/mercurial/extensions.py", line 184, in wrap : return wrapper(origfn, *args, **kwargs) : File "/usr/lib64/python2.7/site-packages/hgext/color.py", line 362, in colorcmd : return orig(ui_, opts, cmd, cmdfunc) : File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 775, in _runcommand : return checkargs() : File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 746, in checkargs : return cmdfunc() : File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 682, in <lambda> : d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) : File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 463, in check : return func(*args, **kwargs) : File "/usr/lib64/python2.7/site-packages/mercurial/extensions.py", line 139, in wrap : util.checksignature(origfn), *args, **kwargs) : File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 463, in check : return func(*args, **kwargs) : File "/usr/lib64/python2.7/site-packages/hgext/mq.py", line 3350, in mqcommand : return orig(ui, repo, *args, **kwargs) : File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 463, in check : return func(*args, **kwargs) : File "/usr/lib64/python2.7/site-packages/hgext/relink.py", line 57, in relink : do_relink(src.store.path, repo.store.path, targets, ui) : File "/usr/lib64/python2.7/site-packages/hgext/relink.py", line 176, in do_relink : (relinked, util.bytecount(savedbytes))) : File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 1189, in bytecount : return units[-1][2] % nbytes :NameError: global name 'units' is not defined : :Local variables in innermost frame: :nbytes: 0 :multiplier: 1 :divisor: 1 :format: '%.0f bytes' comment: :With the relink extension enabled and a relink path specified in the hgrc file, the command `hg relink' crashes. :The crash is the result of an incomplete conversion of the code in mercurial/util.py when the "units" dictionary was moved outside the function bytecount. The fix is to change "units" into "_byteunits".
Fixed in 2.2.2.
This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed.