Closed achauphan closed 6 months ago
@achauphan, we need to see if we can get the autotester to always generate a merge commit with git merge --no-ff <topic>
even when a merge commit is not needed (because the tip of <topic>
is downstream from the tip of <target>
, i.e. develop
). Otherwise, we need to add more complex logic to TriBITS and/or the Python script that pulls down data from CDash.
With the merge of PR:
this story should be complete. This is in the process of being snapshotted to Trilinos in:
@achauphan, can we close this issue?
Related issues
Description
The current repo version output in TriBITS does not include the current commit's parents (if there are any). The parent commits are desirable in cases such as a merge commit, where examining a merge commit's parents are useful for determining which parents had changes performed to them across other merge commits.
This issue is in relation to [add issue number here], which plans to utilize a merge commit's parent sha1.
The current TriBITS repo version output is:
The desired output would be something like:
Proposed Solution
Modify
repoVersionStringOut
in tribits_generate_single_repo_version_string() to include the parent commits.The parents of a commit can be found with the following git commands with the same date and author formatting:
git log -1 "--pretty=format:%h [%ad] <%ae>" HEAD^1
git log -1 "--pretty=format:%h [%ad] <%ae>" HEAD^2
Requirements