File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -505,18 +505,21 @@ fn fixup_bounds(
505
505
// even try to convert the other bound to a date.
506
506
return Ok ( ( ) ) ;
507
507
}
508
- let fixup = |bound : & mut Option < Bound > | -> anyhow:: Result < ( ) > {
508
+ let fixup = |which : & str , bound : & mut Option < Bound > | -> anyhow:: Result < ( ) > {
509
509
if is_tag ( bound) {
510
- if let Some ( b) = bound. clone ( ) {
511
- if is_tag ( bound) {
512
- * bound = Some ( Bound :: Date ( access. repo ( ) . bound_to_date ( b) ?) ) ;
513
- }
510
+ if let Some ( Bound :: Commit ( tag) ) = bound {
511
+ let date = access. repo ( ) . bound_to_date ( Bound :: Commit ( tag. clone ( ) ) ) ?;
512
+ eprintln ! (
513
+ "translating --{which}={tag} to {date}" ,
514
+ date = date. format( YYYY_MM_DD )
515
+ ) ;
516
+ * bound = Some ( Bound :: Date ( date) ) ;
514
517
}
515
518
}
516
519
Ok ( ( ) )
517
520
} ;
518
- fixup ( start) ?;
519
- fixup ( end) ?;
521
+ fixup ( "start" , start) ?;
522
+ fixup ( "end" , end) ?;
520
523
Ok ( ( ) )
521
524
}
522
525
You can’t perform that action at this time.
0 commit comments