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