File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,6 @@ def update_single_repository(args):
102
102
checkout_target = find_rev_by_timestamp (timestamp ,
103
103
repo_name ,
104
104
checkout_target )
105
- elif timestamp :
106
- checkout_target = find_rev_by_timestamp (timestamp , repo_name ,
107
- "HEAD" )
108
105
109
106
# The clean option restores a repository to pristine condition.
110
107
if should_clean :
@@ -435,10 +432,17 @@ def main():
435
432
dest = "n_processes" )
436
433
args = parser .parse_args ()
437
434
438
- if args .reset_to_remote and not args .scheme :
439
- print ("update-checkout usage error: --reset-to-remote must specify "
440
- "--scheme=foo" )
441
- sys .exit (1 )
435
+ if not args .scheme :
436
+ if args .reset_to_remote :
437
+ print ("update-checkout usage error: --reset-to-remote must "
438
+ "specify --scheme=foo" )
439
+ sys .exit (1 )
440
+ if args .match_timestamp :
441
+ # without a scheme, we won't be able match timestamps forward in
442
+ # time, which is an annoying footgun for bisection etc.
443
+ print ("update-checkout usage error: --match-timestamp must "
444
+ "specify --scheme=foo" )
445
+ sys .exit (1 )
442
446
443
447
clone = args .clone
444
448
clone_with_ssh = args .clone_with_ssh
You can’t perform that action at this time.
0 commit comments