Mercurial > hg
changeset 11342:aecabad8dd7a
commands: get rid of generic exception in debugbuilddag
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Tue, 15 Jun 2010 09:53:50 +0200 |
parents | 920a783e5f91 |
children | f325db39c8b9 |
files | mercurial/commands.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Jun 15 09:51:52 2010 +0200 +++ b/mercurial/commands.py Tue Jun 15 09:53:50 2010 +0200 @@ -889,10 +889,10 @@ """ if not (mergeable_file or appended_file or overwritten_file or new_file): - raise Exception(_('need at least one of -m, -a, -o, -n')) + raise util.Abort(_('need at least one of -m, -a, -o, -n')) if len(repo.changelog) > 0: - raise Exception(_('repository is not empty')) + raise util.Abort(_('repository is not empty')) if overwritten_file or appended_file: # we don't want to fail in merges during buildup