Show More
@@ -3199,12 +3199,9 b' def finish(ui, repo, *revrange, **opts):' | |||||
3199 | # queue.finish may changes phases but leave the responsibility to lock the |
|
3199 | # queue.finish may changes phases but leave the responsibility to lock the | |
3200 | # repo to the caller to avoid deadlock with wlock. This command code is |
|
3200 | # repo to the caller to avoid deadlock with wlock. This command code is | |
3201 | # responsibility for this locking. |
|
3201 | # responsibility for this locking. | |
3202 |
|
|
3202 | with repo.lock(): | |
3203 | try: |
|
|||
3204 | q.finish(repo, revs) |
|
3203 | q.finish(repo, revs) | |
3205 | q.savedirty() |
|
3204 | q.savedirty() | |
3206 | finally: |
|
|||
3207 | lock.release() |
|
|||
3208 | return 0 |
|
3205 | return 0 | |
3209 |
|
3206 | |||
3210 | @command("qqueue", |
|
3207 | @command("qqueue", |
General Comments 0
You need to be logged in to leave comments.
Login now