##// END OF EJS Templates
destutil: raise more specific error when histedit.defaultrev is empty...
Martin von Zweigbergk -
r46447:c7abdbc8 default
parent child Browse files
Show More
@@ -405,7 +405,7 b' def desthistedit(ui, repo):'
405 elif default:
405 elif default:
406 revs = scmutil.revrange(repo, [default])
406 revs = scmutil.revrange(repo, [default])
407 else:
407 else:
408 raise error.Abort(
408 raise error.ConfigError(
409 _(b"config option histedit.defaultrev can't be empty")
409 _(b"config option histedit.defaultrev can't be empty")
410 )
410 )
411
411
@@ -127,7 +127,7 b' Test invalid config default'
127
127
128 $ hg histedit --config "histedit.defaultrev="
128 $ hg histedit --config "histedit.defaultrev="
129 abort: config option histedit.defaultrev can't be empty
129 abort: config option histedit.defaultrev can't be empty
130 [255]
130 [30]
131
131
132 Run on a revision not descendants of the initial parent
132 Run on a revision not descendants of the initial parent
133 --------------------------------------------------------------------
133 --------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now