Comments
Patch
@@ -196,8 +196,11 @@ def extsetup(ui):
try:
extensions.find('directaccess')
except KeyError:
- errormsg = _('Cannot use inhibit without the direct access extension')
- raise error.Abort(errormsg)
+ errormsg = _('cannot use inhibit without the direct access extension\n')
+ hint = _("(please enable it or inhibit won\'t work)\n")
+ ui.warn(errormsg)
+ ui.warn(hint)
+ return
# Wrapping this to inhibit obsolete revs resulting from a transaction
extensions.wrapfunction(localrepo.localrepository,
@@ -725,9 +725,10 @@ Inhibit should not work without directac
> directaccess=!
> testextension=!
> EOF
- $ hg up 15
- abort: Cannot use inhibit without the direct access extension
- [255]
+ $ hg up .
+ cannot use inhibit without the direct access extension
+ (please enable it or inhibit won't work)
+ 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ echo "directaccess=$(echo $(dirname $TESTDIR))/hgext/directaccess.py" >> $HGRCPATH
$ cd ..