##// END OF EJS Templates
destutil: use scmutil.revrange for desthistedit (issue5001)...
Gregory Szorc -
r27559:d13bcc9f default
parent child Browse files
Show More
@@ -205,9 +205,12 b" histeditdefaultrevset = 'reverse(only(.)"
205 205
206 206 def desthistedit(ui, repo):
207 207 """Default base revision to edit for `hg histedit`."""
208 # Avoid cycle: scmutil -> revset -> destutil
209 from . import scmutil
210
208 211 default = ui.config('histedit', 'defaultrev', histeditdefaultrevset)
209 212 if default:
210 revs = repo.revs(default)
213 revs = scmutil.revrange(repo, [default])
211 214 if revs:
212 215 # The revset supplied by the user may not be in ascending order nor
213 216 # take the first revision. So do this manually.
General Comments 0
You need to be logged in to leave comments. Login now