# HG changeset patch # User Martin von Zweigbergk # Date 1605028441 28800 # Node ID c7abdbc8fd473bf9f096edb5f87137495ed83be5 # Parent 1bf1dcbc995034ee8072fae00ded45fd6045ed2f destutil: raise more specific error when histedit.defaultrev is empty Differential Revision: https://phab.mercurial-scm.org/D9313 diff -r 1bf1dcbc9950 -r c7abdbc8fd47 mercurial/destutil.py --- a/mercurial/destutil.py Tue Oct 20 08:56:00 2020 -0700 +++ b/mercurial/destutil.py Tue Nov 10 09:14:01 2020 -0800 @@ -405,7 +405,7 @@ elif default: revs = scmutil.revrange(repo, [default]) else: - raise error.Abort( + raise error.ConfigError( _(b"config option histedit.defaultrev can't be empty") ) diff -r 1bf1dcbc9950 -r c7abdbc8fd47 tests/test-histedit-arguments.t --- a/tests/test-histedit-arguments.t Tue Oct 20 08:56:00 2020 -0700 +++ b/tests/test-histedit-arguments.t Tue Nov 10 09:14:01 2020 -0800 @@ -127,7 +127,7 @@ $ hg histedit --config "histedit.defaultrev=" abort: config option histedit.defaultrev can't be empty - [255] + [30] Run on a revision not descendants of the initial parent --------------------------------------------------------------------