[Bug 6077] New: Traceback in hg fix: TypeError: argument of type 'NoneType' is not iterable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 6077] New: Traceback in hg fix: TypeError: argument of type 'NoneType' is not iterable

mercurial-bugs-2
https://bz.mercurial-scm.org/show_bug.cgi?id=6077

            Bug ID: 6077
           Summary: Traceback in hg fix: TypeError: argument of type
                    'NoneType' is not iterable
           Product: Mercurial
           Version: 4.9
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: [hidden email]
          Reporter: [hidden email]
                CC: [hidden email]

hg config:

```
[extensions]
fix =

[fix]
trailing-whitespace:command = sed
trailing-whitespace:linerange = -e '{first},{last}s/\s\+$//'
```

Steps to reproduce:
```
$ hg init
$ echo hello > test
$ hg add test
$ hg fix -w
```

Full traceback:

```
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mercurial/worker.py", line 191, in
_posixworker
    ret = scmutil.callcatch(ui, workerfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/scmutil.py", line 165, in
callcatch
    return func()
  File "/usr/lib/python2.7/dist-packages/mercurial/worker.py", line 187, in
workerfunc
    for result in func(*(staticargs + (pargs,))):
  File "/usr/lib/python2.7/dist-packages/hgext/fix.py", line 204, in getfixes
    newdata = fixfile(ui, opts, fixers, ctx, path, basectxs[rev])
  File "/usr/lib/python2.7/dist-packages/hgext/fix.py", line 498, in fixfile
    if fixer.affects(opts, fixctx, path):
  File "/usr/lib/python2.7/dist-packages/hgext/fix.py", line 672, in affects
    return scmutil.match(fixctx, [self._pattern], opts)(path)
  File "/usr/lib/python2.7/dist-packages/mercurial/scmutil.py", line 790, in
match
    return matchandpats(ctx, pats, opts, globbed, default, badfn=badfn)[0]
  File "/usr/lib/python2.7/dist-packages/mercurial/scmutil.py", line 781, in
matchandpats
    default, listsubrepos=opts.get('subrepos'), badfn=badfn)
  File "/usr/lib/python2.7/dist-packages/mercurial/context.py", line 1411, in
match
    icasefs=icasefs)
  File "/usr/lib/python2.7/dist-packages/mercurial/match.py", line 177, in
match
    kindpats = normalize(patterns, default, root, cwd, auditor, warn)
  File "/usr/lib/python2.7/dist-packages/mercurial/match.py", line 222, in
_donormalize
    for kind, pat in [_patsplit(p, default) for p in patterns]:
  File "/usr/lib/python2.7/dist-packages/mercurial/match.py", line 1029, in
_patsplit
    if ':' in pattern:
TypeError: argument of type 'NoneType' is not iterable
```

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel