Page MenuHomePhabricator

Improve git-subtree-check.sh
AbandonedPublic

Authored by Fabien on Aug 28 2019, 09:02.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Summary
We have several pieces of information about subtrees:
1) What their current directory contents is
2) What their directory contents was at the time of the last subtree
merge
3) What the directory contents of the upstream project is in the commit
referred to by the subtree merge.

Normally, all 3 should be identical. git-subtree-check.sh so far only
compared (1) with (3) however.

Fix this by comparing all three, and give some more useful diff output
in the case of mismatch.

The added benefit is that (1) and (2) can be compared without needing to
see the upstream repository.

Backport of core PR11394
https://github.com/bitcoin/bitcoin/pull/11394/files

Test Plan

Run the git-subtree-check.sh script. Note that it will not output
GOOD as all our subtree libraries have been modified, at least for
code formatting.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR11394
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 7255
Build 12555: Bitcoin ABC Buildbot (legacy)
Build 12554: arc lint + arc unit

Event Timeline

deadalnix requested changes to this revision.Aug 28 2019, 12:24

I don't think it make sense to keep that script around for a us as we do not use git subtrees. Why not just delete it?

This revision now requires changes to proceed.Aug 28 2019, 12:24

Fair enough, we can still pull it again later if we want to use the subtrees. I will remove it.