Show More
@@ -2316,8 +2316,7 b' def qimport(ui, repo, *filename, **opts)' | |||||
2316 |
|
2316 | |||
2317 | Returns 0 if import succeeded. |
|
2317 | Returns 0 if import succeeded. | |
2318 | """ |
|
2318 | """ | |
2319 |
|
|
2319 | with repo.lock(): # cause this may move phase | |
2320 | try: |
|
|||
2321 | q = repo.mq |
|
2320 | q = repo.mq | |
2322 | try: |
|
2321 | try: | |
2323 | imported = q.qimport( |
|
2322 | imported = q.qimport( | |
@@ -2326,8 +2325,6 b' def qimport(ui, repo, *filename, **opts)' | |||||
2326 | rev=opts.get('rev'), git=opts.get('git')) |
|
2325 | rev=opts.get('rev'), git=opts.get('git')) | |
2327 | finally: |
|
2326 | finally: | |
2328 | q.savedirty() |
|
2327 | q.savedirty() | |
2329 | finally: |
|
|||
2330 | lock.release() |
|
|||
2331 |
|
2328 | |||
2332 | if imported and opts.get('push') and not opts.get('rev'): |
|
2329 | if imported and opts.get('push') and not opts.get('rev'): | |
2333 | return q.push(repo, imported[-1]) |
|
2330 | return q.push(repo, imported[-1]) |
General Comments 0
You need to be logged in to leave comments.
Login now