Bug 2181 - commit generates traceback on Nonetype
Summary: commit generates traceback on Nonetype
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: urgent bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 07:05 UTC by Wayne Contello
Modified: 2012-05-13 04:49 UTC (History)
4 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wayne Contello 2010-05-11 07:05 UTC
Problem occurs on Mac OS X (10.6.3) when trying to commit to a repository-- 
see transcript below-- MacBookPro CoreDuo

Nitro:SMBFW wayne$ hg commit -u "wcontello" -m "Version 3.1s-- code from TI"
transaction abort!
rollback completed
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial@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.6/site-packages/mercurial/dispatch.py", line 16, 
in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 30, 
in dispatch
    return _runcatch(u, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 50, 
in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 470, 
in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 340, 
in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 521, 
in _runcommand
    return checkargs()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 475, 
in checkargs
    return cmdfunc()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 469, 
in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 401, in 
check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 712, 
in commit
    node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
  File "/Library/Python/2.6/site-packages/mercurial/cmdutil.py", line 1151, 
in commit
    return commitfunc(ui, repo, message, match(repo, pats, opts), opts)
  File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 710, 
in commitfunc
    editor=e, extra=extra)
  File "/Library/Python/2.6/site-packages/mercurial/localrepo.py", line 858, 
in commit
    ret = self.commitctx(cctx, True)
  File "/Library/Python/2.6/site-packages/mercurial/localrepo.py", line 906, 
in commitctx
    m1.set(f, fctx.flags())
  File "/Library/Python/2.6/site-packages/mercurial/context.py", line 304, 
in flags
    return self._changectx.flags(self._path)
  File "/Library/Python/2.6/site-packages/mercurial/context.py", line 694, 
in flags
    flag = findflag(self._parents[0])
  File "/Library/Python/2.6/site-packages/mercurial/context.py", line 690, 
in findflag
    return ff(path)
  File "/Library/Python/2.6/site-packages/mercurial/dirstate.py", line 145, 
in f
    if 'x' in fallback(x):
TypeError: argument of type 'NoneType' is not iterable
Comment 1 kiilerix 2010-05-11 07:10 UTC
This seems to be the same as reported on
http://selenic.com/pipermail/mercurial/2010-May/031989.html

What file system are you using? SMBFW indicates a mounted windows file system?
Comment 2 Wayne Contello 2010-05-11 09:01 UTC
I am using Mac OS X so the filesystem is HFS+ (	Mac OS Extended (Journaled)).  The "SMBFW" is inside the -m option for including a message with the commit.

On May 11, 2010, at 8:10 AM, Mads Kiilerich wrote:

> 
> Mads Kiilerich <mads@kiilerich.com> added the comment:
> 
> This seems to be the same as reported on
> http://selenic.com/pipermail/mercurial/2010-May/031989.html
> 
> What file system are you using? SMBFW indicates a mounted windows file system?
> 
> ----------
> nosy: +kiilerix
> status: unread -> chatting
> 
> ____________________________________________________
> Mercurial issue tracker <bugs@mercurial.selenic.com>
> <http://mercurial.selenic.com/bts/issue2181>
> ____________________________________________________

------------------------------------------
Wayne Contello
   wcontello@gmail.net

  10004 Palmbrook Drive
  Austin, Texas 78717
  (512) 716-0120  (home)
  (512) 653-0851  (mobile)

------------------------------------------
Comment 3 kiilerix 2010-05-11 16:46 UTC
http://selenic.com/pipermail/mercurial/2010-May/032017.html

Can you verify if the problem has been selved with the latest changes in the
http://hg.intevation.org/mercurial/crew/?
Comment 4 Matt Mackall 2010-05-13 10:37 UTC
This is fixed in a9b427b5821e, released in 1.5.3
Comment 5 Yuya Nishihara 2010-05-14 05:06 UTC
> This is fixed in a9b427b5821e,

seems e0a0af140f2e ?
Comment 6 kiilerix 2010-05-14 05:30 UTC
youjah: Correct - http://hg.intevation.org/mercurial/crew/rev/e0a0af140f2e
Comment 7 Bugzilla 2012-05-12 09:09 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:09 EDT  ---

This bug was previously known as _bug_ 2181 at http://mercurial.selenic.com/bts/issue2181