Bug 3663 - bookmark: incompatible options are not caught
Summary: bookmark: incompatible options are not caught
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: earlier
Hardware: PC All
: normal bug
Assignee: Kevin Bullock
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-16 16:37 UTC by Kevin Bullock
Modified: 2017-11-01 18:05 UTC (History)
3 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Bullock 2012-10-16 16:37 UTC
e.g. something like

   if delete and rename:
       raise util.Abort(_("--delete and --rename are incompatible"))

 (and some more)
Comment 1 HG Bot 2012-10-18 16:13 UTC
Fixed by http://selenic.com/repo/hg/rev/0291e122fb05
David Soria Parra <dsp@php.net>
bookmarks: abort when incompatible options are used (issue3663)

Options like --delete and --rename are incompatible with each
other. In this case we abort. We do not abort if the result is a nullop.
Nullops are: '--delete --inactive', '--delete --force'.

(please test the fix)