##// END OF EJS Templates
histedit: crashing with a more useful error message on empty defaultrev...
rdamazio@google.com -
r41202:fbd16845 stable
parent child Browse files
Show More
@@ -381,6 +381,8 b' def desthistedit(ui, repo):'
381 revs = stack.getstack(repo)
381 revs = stack.getstack(repo)
382 elif default:
382 elif default:
383 revs = scmutil.revrange(repo, [default])
383 revs = scmutil.revrange(repo, [default])
384 else:
385 raise error.Abort(_("config option histedit.defaultrev can't be empty"))
384
386
385 if revs:
387 if revs:
386 # Take the first revision of the revset as the root
388 # Take the first revision of the revset as the root
@@ -112,6 +112,13 b' Test config specified default'
112 > pick 08d98a8350f3 4 five
112 > pick 08d98a8350f3 4 five
113 > EOF
113 > EOF
114
114
115 Test invalid config default
116 ---------------------------
117
118 $ hg histedit --config "histedit.defaultrev="
119 abort: config option histedit.defaultrev can't be empty
120 [255]
121
115 Run on a revision not descendants of the initial parent
122 Run on a revision not descendants of the initial parent
116 --------------------------------------------------------------------
123 --------------------------------------------------------------------
117
124
General Comments 0
You need to be logged in to leave comments. Login now