[issue1575] caef5fdf1375 breaks setup.py --version on MacOS X

Christian Ebert mercurial-bugs at selenic.com
Fri Mar 27 12:34:22 CDT 2009


New submission from Christian Ebert <blacktrash at gmx.net>:

As of caef5fdf1375 building hg triggers a traceback on MacOS X.
I guess it must be MacOS X, as no one else is complaining ;-)

More precisely it's "python setup.py --version" that triggers it.

Problem with pure.py? Or import * in util.py?

** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version unknown)
** Extensions loaded: 
Traceback (most recent call last):
  File "hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/dispatch.py", line 25, in
dispatch
    return _runcatch(u, args)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/dispatch.py", line 41, in
_runcatch
    return _dispatch(ui, args)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/dispatch.py", line 372, in
_dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/dispatch.py", line 247, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/dispatch.py", line 417, in
_runcommand
    return checkargs()
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/dispatch.py", line 377, in
checkargs
    return cmdfunc()
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/dispatch.py", line 371, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/util.py", line 702, in check
    return func(*args, **kwargs)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/commands.py", line 1560,
in identify
    parents = ctx.parents()
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/context.py", line 108, in
parents
    return self._parents
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/context.py", line 17, in
__get__
    result = self.func(obj)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/context.py", line 557, in
_parents
    self._parents = [changectx(self._repo, x) for x in p]
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/context.py", line 33, in
__init__
    self._node = self._repo.lookup(changeid)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/localrepo.py", line 480,
in lookup
    n = self.changelog._match(key)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/localrepo.py", line 90, in
__getattr__
    self.changelog = changelog.changelog(self.sopener)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/changelog.py", line 79, in
__init__
    revlog.revlog.__init__(self, opener, "00changelog.i")
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/revlog.py", line 463, in
__init__
    d = self._io.parseindex(f, self._inline)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/revlog.py", line 379, in
parseindex
    index, nodemap, cache = parsers.parse_index(data, inline)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/demandimport.py", line 75,
in __getattribute__
    self._load()
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/demandimport.py", line 47,
in _load
    mod = _origimport(head, globals, locals)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/pure/parsers.py", line 15,
in <module>
    _sha = util.sha1
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/demandimport.py", line 75,
in __getattribute__
    self._load()
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/demandimport.py", line 47,
in _load
    mod = _origimport(head, globals, locals)
  File "/Users/chris/HGworkspace/hg-crew-mq/mercurial/util.py", line 1069, in
<module>
    class atomictempfile(posixfile):
NameError: name 'posixfile' is not defined
unknown

----------
messages: 8915
nosy: blacktrash
priority: bug
status: unread
title: caef5fdf1375 breaks setup.py --version on MacOS X
topic: macos

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1575>
____________________________________________________



More information about the Mercurial-devel mailing list