Show More
@@ -4557,11 +4557,6 b' def import_(ui, repo, patch1=None, *patc' | |||
|
4557 | 4557 | if opts.get('exact') and opts.get('prefix'): |
|
4558 | 4558 | raise error.Abort(_('cannot use --exact with --prefix')) |
|
4559 | 4559 | |
|
4560 | if update: | |
|
4561 | cmdutil.checkunfinished(repo) | |
|
4562 | if (opts.get('exact') or not opts.get('force')) and update: | |
|
4563 | cmdutil.bailifchanged(repo) | |
|
4564 | ||
|
4565 | 4560 | base = opts["base"] |
|
4566 | 4561 | wlock = dsguard = lock = tr = None |
|
4567 | 4562 | msgs = [] |
@@ -4571,6 +4566,12 b' def import_(ui, repo, patch1=None, *patc' | |||
|
4571 | 4566 | try: |
|
4572 | 4567 | try: |
|
4573 | 4568 | wlock = repo.wlock() |
|
4569 | ||
|
4570 | if update: | |
|
4571 | cmdutil.checkunfinished(repo) | |
|
4572 | if (opts.get('exact') or not opts.get('force')) and update: | |
|
4573 | cmdutil.bailifchanged(repo) | |
|
4574 | ||
|
4574 | 4575 | if not opts.get('no_commit'): |
|
4575 | 4576 | lock = repo.lock() |
|
4576 | 4577 | tr = repo.transaction('import') |
General Comments 0
You need to be logged in to leave comments.
Login now