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 |
|
|
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