Show More
@@ -159,6 +159,7 b' from mercurial import scmutil' | |||
|
159 | 159 | from mercurial import util |
|
160 | 160 | from mercurial import obsolete |
|
161 | 161 | from mercurial import merge as mergemod |
|
162 | from mercurial.lock import release | |
|
162 | 163 | from mercurial.i18n import _ |
|
163 | 164 | |
|
164 | 165 | cmdtable = {} |
@@ -476,6 +477,15 b' def histedit(ui, repo, *freeargs, **opts' | |||
|
476 | 477 | for intentional "edit" command, but also for resolving unexpected |
|
477 | 478 | conflicts). |
|
478 | 479 | """ |
|
480 | lock = wlock = None | |
|
481 | try: | |
|
482 | wlock = repo.wlock() | |
|
483 | lock = repo.lock() | |
|
484 | _histedit(ui, repo, *freeargs, **opts) | |
|
485 | finally: | |
|
486 | release(lock, wlock) | |
|
487 | ||
|
488 | def _histedit(ui, repo, *freeargs, **opts): | |
|
479 | 489 | # TODO only abort if we try and histedit mq patches, not just |
|
480 | 490 | # blanket if mq patches are applied somewhere |
|
481 | 491 | mq = getattr(repo, 'mq', None) |
General Comments 0
You need to be logged in to leave comments.
Login now