Mac OS X 10.5 Bug: NoneType is not iterable

Dylan Mikus dbmikus at gmail.com
Tue May 18 02:26:17 UTC 2010


I get the following error when running multiple commands on Mac OS X  
10.5 with the latest version of Mercurial.
Mercurial version: Mercurial Distributed SCM (version 1.5.2+20100502)

It happens after, identify, status, and update.

** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.5.2+20100502)
** Extensions loaded:
Traceback (most recent call last):
   File "/usr/local/bin/hg", line 27, in <module>
     mercurial.dispatch.run()
   File "/Library/Python/2.5/site-packages/mercurial/dispatch.py",  
line 16, in run
     sys.exit(dispatch(sys.argv[1:]))
   File "/Library/Python/2.5/site-packages/mercurial/dispatch.py",  
line 30, in dispatch
     return _runcatch(u, args)
   File "/Library/Python/2.5/site-packages/mercurial/dispatch.py",  
line 50, in _runcatch
     return _dispatch(ui, args)
   File "/Library/Python/2.5/site-packages/mercurial/dispatch.py",  
line 470, in _dispatch
     return runcommand(lui, repo, cmd, fullargs, ui, options, d)
   File "/Library/Python/2.5/site-packages/mercurial/dispatch.py",  
line 340, in runcommand
     ret = _runcommand(ui, options, cmd, d)
   File "/Library/Python/2.5/site-packages/mercurial/dispatch.py",  
line 521, in _runcommand
     return checkargs()
   File "/Library/Python/2.5/site-packages/mercurial/dispatch.py",  
line 475, in checkargs
     return cmdfunc()
   File "/Library/Python/2.5/site-packages/mercurial/dispatch.py",  
line 469, in <lambda>
     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
   File "/Library/Python/2.5/site-packages/mercurial/util.py", line  
401, in check
     return func(*args, **kwargs)
   File "/Library/Python/2.5/site-packages/mercurial/commands.py",  
line 3001, in status
     'ignored' in show, 'clean' in show, 'unknown' in show)
   File "/Library/Python/2.5/site-packages/mercurial/localrepo.py",  
line 1023, in status
     if (f not in ctx1 or ctx2.flags(f) != ctx1.flags(f)
   File "/Library/Python/2.5/site-packages/mercurial/context.py", line  
694, in flags
     flag = findflag(self._parents[0])
   File "/Library/Python/2.5/site-packages/mercurial/context.py", line  
690, in findflag
     return ff(path)
   File "/Library/Python/2.5/site-packages/mercurial/dirstate.py",  
line 145, in f
     if 'x' in fallback(x):
TypeError: argument of type 'NoneType' is not iterable




More information about the Mercurial mailing list