tests/test-hghave.t
author Pierre-Yves David <pierre-yves.david@fb.com>
Tue, 12 May 2015 11:44:14 -0700
changeset 25021 9a74b9919581
parent 12430 60738066e37a
child 25472 4d2b9b304ad0
permissions -rw-r--r--
commit: no longer allow empty commit with the 'force' argument (API) The new way to allow empty commit is to temporarily set the 'ui.allowemptycommit' config option. allowemptyback = repo.ui.backupconfig('ui', 'allowemptycommit') try: repo.ui.setconfig('ui', 'allowemptycommit', True) repo.commit(...) finally: repo.ui.restoreconfig(allowemptyback) All known uses of force for allowing empty commits have been removed, so let's remove it from the allowemptycommits condition.

Testing that hghave does not crash when checking features

  $ "$TESTDIR/hghave" --test-features 2>/dev/null