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