fix NameError causing crash at startup (closes #224825)

authorAlexandre Fayolle <afayolle.ml@free.fr>
changeset3be53a0e7808
branchdefault
phasepublic
hiddenno
parent revision#2685c7fce76e [debian] upload to unstable
child revision#2b909100877a application: fix urwid check
files modified by this revision
hgviewlib/hggraph.py
# HG changeset patch
# User Alexandre Fayolle <afayolle.ml@free.fr>
# Date 1393684700 -3600
# Sat Mar 01 15:38:20 2014 +0100
# Node ID 3be53a0e7808ac98e757cdaab9f0a6ac9fff5b89
# Parent 2685c7fce76e9ac60077685f0b83106543cad2f0
fix NameError causing crash at startup (closes #224825)

diff --git a/hgviewlib/hggraph.py b/hgviewlib/hggraph.py
@@ -196,11 +196,11 @@
1          return repo.revs(revset, *revset_args)
2      else:
3          if getattr(repo, 'revs', None) is None: # pre 2.1 hg
4              revs = [c.rev() for c in repo.set(revset, *revset_args)]
5          else:
6 -            revs = _repo.revs(revset, *revset_args)
7 +            revs = repo.revs(revset, *revset_args)
8          excluded = () if view is None else hiddenrevs(repo)
9          if excluded:
10              revs = [r for r in revs if r not in excluded]
11          return revs
12