hgview #224825 crash at startup [validation pending]

When I start hgview 1.8.0 I get the following stack trace:

Traceback (most recent call last):
 File "/usr/bin/hgview", line 38, in <module>
   main()
 File "/usr/lib/python2.7/dist-packages/hgviewlib/application.py", line 225, in main
   sys.exit(start(repo, opts, args, parser.error))
 File "/usr/lib/python2.7/dist-packages/hgviewlib/application.py", line 173, in start
   app = Application(repo, opts, args)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/qt4/application.py", line 54, in __init__
   super(HgViewQtApplication, self).__init__(*args, **kwargs)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/application.py", line 83, in __init__
   self.choose_viewer()
 File "/usr/lib/python2.7/dist-packages/hgviewlib/application.py", line 107, in choose_viewer
   viewer = self.HgRepoViewer(self.repo)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/qt4/hgrepoviewer.py", line 91, in __init__
   self.setupModels(fromhead)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/qt4/hgrepoviewer.py", line 429, in setupModels
   self.create_models(fromhead)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/qt4/hgrepoviewer.py", line 420, in create_models
   self.repomodel = HgRepoListModel(self.repo, fromhead=fromhead)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/qt4/hgrepomodel.py", line 138, in __init__
   HgRepoListWalker.__init__(self, repo, branch, fromhead, follow, closed=closed)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/hggraph.py", line 646, in __init__
   self.setRepo(repo, branch=branch, fromhead=fromhead, follow=follow, closed=closed)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/qt4/hgrepomodel.py", line 142, in setRepo
   HgRepoListWalker.setRepo(self, repo, branch, fromhead, follow, closed=closed)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/hggraph.py", line 685, in setRepo
   self.ensureBuilt(row=self.fill_step)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/hggraph.py", line 705, in ensureBuilt
   self.graph.build_nodes(nnodes=required, rev=buildrev)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/hggraph.py", line 433, in build_nodes
   for vnext in self.grapher:
 File "/usr/lib/python2.7/dist-packages/hgviewlib/hggraph.py", line 245, in revision_grapher
   included =  _revset_revs(repo, revset, args, view=view)
 File "/usr/lib/python2.7/dist-packages/hgviewlib/hggraph.py", line 201, in _revset_revs
   revs = _repo.revs(revset, *revset_args)
NameError: global name '_repo' is not defined

The repo I'm using for testing is a fresh clone of Pylint obtained with hg 2.2.1

priorityimportant
typebug
done in1.8.1
load left0.000
closed by#3be53a0e7808 fix NameError causing crash at startup (closes #224825)