author | TK Soh <teekaysoh@yahoo.com> |
Fri, 15 Jun 2007 14:48:21 -0500 | |
changeset 4650 | 15e22b483adc |
parent 4649 | 52259d5fb76d |
child 4651 | 7176f278d6f9 |
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2515,6 +2515,8 @@ def tag(ui, repo, name, rev_=None, **opt rev_ = opts['rev'] message = opts['message'] if opts['remove']: + if not name in repo.tags(): + raise util.Abort(_('tag %s does not exist') % name) rev_ = nullid if not message: message = _('Removed tag %s') % name