diff options
Diffstat (limited to 'subcmds')
| -rw-r--r-- | subcmds/sync.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 18d2256e..63e5bc7d 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -415,7 +415,7 @@ later is required to fix a server side protocol bug. | |||
| 415 | for project_list in objdir_project_map.values(): | 415 | for project_list in objdir_project_map.values(): |
| 416 | # Check for any errors before running any more tasks. | 416 | # Check for any errors before running any more tasks. |
| 417 | # ...we'll let existing threads finish, though. | 417 | # ...we'll let existing threads finish, though. |
| 418 | if err_event.isSet() and opt.fail_fast: | 418 | if err_event.is_set() and opt.fail_fast: |
| 419 | break | 419 | break |
| 420 | 420 | ||
| 421 | sem.acquire() | 421 | sem.acquire() |
| @@ -562,7 +562,7 @@ later is required to fix a server side protocol bug. | |||
| 562 | for project in all_projects: | 562 | for project in all_projects: |
| 563 | # Check for any errors before running any more tasks. | 563 | # Check for any errors before running any more tasks. |
| 564 | # ...we'll let existing threads finish, though. | 564 | # ...we'll let existing threads finish, though. |
| 565 | if err_event.isSet() and opt.fail_fast: | 565 | if err_event.is_set() and opt.fail_fast: |
| 566 | break | 566 | break |
| 567 | 567 | ||
| 568 | sem.acquire() | 568 | sem.acquire() |
| @@ -638,7 +638,7 @@ later is required to fix a server side protocol bug. | |||
| 638 | sem.release() | 638 | sem.release() |
| 639 | 639 | ||
| 640 | for bare_git in gc_gitdirs.values(): | 640 | for bare_git in gc_gitdirs.values(): |
| 641 | if err_event.isSet() and opt.fail_fast: | 641 | if err_event.is_set() and opt.fail_fast: |
| 642 | break | 642 | break |
| 643 | sem.acquire() | 643 | sem.acquire() |
| 644 | t = _threading.Thread(target=GC, args=(bare_git,)) | 644 | t = _threading.Thread(target=GC, args=(bare_git,)) |
| @@ -949,7 +949,7 @@ later is required to fix a server side protocol bug. | |||
| 949 | _PostRepoFetch(rp, opt.repo_verify) | 949 | _PostRepoFetch(rp, opt.repo_verify) |
| 950 | if opt.network_only: | 950 | if opt.network_only: |
| 951 | # bail out now; the rest touches the working tree | 951 | # bail out now; the rest touches the working tree |
| 952 | if err_event.isSet(): | 952 | if err_event.is_set(): |
| 953 | print('\nerror: Exited sync due to fetch errors.\n', file=sys.stderr) | 953 | print('\nerror: Exited sync due to fetch errors.\n', file=sys.stderr) |
| 954 | sys.exit(1) | 954 | sys.exit(1) |
| 955 | return | 955 | return |
| @@ -976,7 +976,7 @@ later is required to fix a server side protocol bug. | |||
| 976 | fetched.update(self._Fetch(missing, opt, err_event)) | 976 | fetched.update(self._Fetch(missing, opt, err_event)) |
| 977 | 977 | ||
| 978 | # If we saw an error, exit with code 1 so that other scripts can check. | 978 | # If we saw an error, exit with code 1 so that other scripts can check. |
| 979 | if err_event.isSet(): | 979 | if err_event.is_set(): |
| 980 | err_network_sync = True | 980 | err_network_sync = True |
| 981 | if opt.fail_fast: | 981 | if opt.fail_fast: |
| 982 | print('\nerror: Exited sync due to fetch errors.\n' | 982 | print('\nerror: Exited sync due to fetch errors.\n' |
| @@ -999,7 +999,7 @@ later is required to fix a server side protocol bug. | |||
| 999 | 999 | ||
| 1000 | err_results = [] | 1000 | err_results = [] |
| 1001 | self._Checkout(all_projects, opt, err_event, err_results) | 1001 | self._Checkout(all_projects, opt, err_event, err_results) |
| 1002 | if err_event.isSet(): | 1002 | if err_event.is_set(): |
| 1003 | err_checkout = True | 1003 | err_checkout = True |
| 1004 | # NB: We don't exit here because this is the last step. | 1004 | # NB: We don't exit here because this is the last step. |
| 1005 | 1005 | ||
| @@ -1009,7 +1009,7 @@ later is required to fix a server side protocol bug. | |||
| 1009 | print(self.manifest.notice) | 1009 | print(self.manifest.notice) |
| 1010 | 1010 | ||
| 1011 | # If we saw an error, exit with code 1 so that other scripts can check. | 1011 | # If we saw an error, exit with code 1 so that other scripts can check. |
| 1012 | if err_event.isSet(): | 1012 | if err_event.is_set(): |
| 1013 | print('\nerror: Unable to fully sync the tree.', file=sys.stderr) | 1013 | print('\nerror: Unable to fully sync the tree.', file=sys.stderr) |
| 1014 | if err_network_sync: | 1014 | if err_network_sync: |
| 1015 | print('error: Downloading network changes failed.', file=sys.stderr) | 1015 | print('error: Downloading network changes failed.', file=sys.stderr) |
