hgext/__init__.py
author Laurent Charignon <lcharignon@fb.com>
Fri, 20 Nov 2015 10:30:42 -0800
changeset 1538 ef5da2310398
parent 519 9825c7da5b54
child 1619 5ef77a1d975c
permissions -rw-r--r--
inhibit: improve handling of error cases for bookmark -D Before this patch bookmark -D was crashing in some cases like: hg book -Dmaster-fix. This was because -m is a valid option for hg bookmark. This patch disallows using -m with -D (moving and pruning does not make much sense) and throws an error instead of crashing if the command is malformed.

# Copyright 2011 Logilab SA <contact@logilab.fr>