Show More
@@ -4407,10 +4407,11 b' def import_(ui, repo, patch1=None, *patc' | |||
|
4407 | 4407 | try: |
|
4408 | 4408 | try: |
|
4409 | 4409 | wlock = repo.wlock() |
|
4410 | dsguard = cmdutil.dirstateguard(repo, 'import') | |
|
4411 | 4410 | if not opts.get('no_commit'): |
|
4412 | 4411 | lock = repo.lock() |
|
4413 | 4412 | tr = repo.transaction('import') |
|
4413 | else: | |
|
4414 | dsguard = cmdutil.dirstateguard(repo, 'import') | |
|
4414 | 4415 | parents = repo.parents() |
|
4415 | 4416 | for patchurl in patches: |
|
4416 | 4417 | if patchurl == '-': |
@@ -4448,7 +4449,8 b' def import_(ui, repo, patch1=None, *patc' | |||
|
4448 | 4449 | tr.close() |
|
4449 | 4450 | if msgs: |
|
4450 | 4451 | repo.savecommitmessage('\n* * *\n'.join(msgs)) |
|
4451 |
dsguard |
|
|
4452 | if dsguard: | |
|
4453 | dsguard.close() | |
|
4452 | 4454 | return ret |
|
4453 | 4455 | finally: |
|
4454 | 4456 | # TODO: get rid of this meaningless try/finally enclosing. |
General Comments 0
You need to be logged in to leave comments.
Login now