[application] do not fail when started outside a repository with ``bin/hgview``(closes #79255)

Remove forbidden raise.

authorAlain Leufroy <alain.leufroy@logilab.fr>
changeset655120b1239b
branchdefault
phasepublic
hiddenno
parent revision#f2cc8e2ff806 [curses] fancier graph highlighting for current/working changeset (closes #79263)
child revision#6257f4fa274b Fall back to the text interface if qt is not available (closes #84939)
files modified by this revision
hgviewlib/application.py
# HG changeset patch
# User Alain Leufroy <alain.leufroy@logilab.fr>
# Date 1319026839 -7200
# Wed Oct 19 14:20:39 2011 +0200
# Node ID 655120b1239ba7d4ddefcb5182b74fc0618b6077
# Parent f2cc8e2ff806a21b498ef0a98d4789ea72b0bd47
[application] do not fail when started outside a repository with ``bin/hgview``(closes #79255)

Remove forbidden ``raise``.

diff --git a/hgviewlib/application.py b/hgviewlib/application.py
@@ -174,12 +174,11 @@
1          u = ui.ui()
2          repo = hg.repository(u, dir_)
3      except RepoError, e:
4          parser.error(e)
5      except:
6 -        raise
7 -        parser.error("You are not in a repo, are you?")
8 +        parser.error("There is no Mercurial repository here (.hg not found)!")
9      start(repo, opts, args, parser.error)
10 
11 
12  if __name__ == "__main__":
13      main()