[CDRIVER-4422] Remove --merged option from calc_release_version.py Created: 06/Jul/22  Updated: 28/Oct/23  Resolved: 08/Jul/22

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.23.0, 1.22.1

Type: Task Priority: Unknown
Reporter: Roberto Sanchez Assignee: Roberto Sanchez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-2540 Sync calc_release_version.py from the... Closed

 Description   

The calc_release_version.py script uses the --merged option. However, older versions of Git lack this option. An alternative approach to this should be developed and the --merged option removed.



 Comments   
Comment by Githook User [ 08/Jul/22 ]

Author:

{'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}

Message: CDRIVER-4422 calc_release_version.py: remove --merged, plus improvements (#1060)

Detail of changes:

  • remove --merged option for compatibility with older versions of 'git'
  • fix bug that considered pre-release tags as higher than their
    succeeding releases (e.g., 1.22.0-beta0 was treated as a higher
    version tag than 1.22.0)
  • refactor to reduce code duplication, increase readability, and
    improve maintainability

Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
Branch: r1.22
https://github.com/mongodb/mongo-c-driver/commit/d79cee5448aa52595e167a34b43d3ace2fd95b7d

Comment by Githook User [ 08/Jul/22 ]

Author:

{'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}

Message: CDRIVER-4422 calc_release_version.py: remove --merged, plus improvements (#1060)

Detail of changes:

  • remove --merged option for compatibility with older versions of 'git'
  • fix bug that considered pre-release tags as higher than their
    succeeding releases (e.g., 1.22.0-beta0 was treated as a higher
    version tag than 1.22.0)
  • refactor to reduce code duplication, increase readability, and
    improve maintainability

Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/aca53d43accc6c6d611adfb90c2a53bfe36d44af

Generated at Wed Feb 07 21:20:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.