Merge "Fix migrate_from_tempest script to work with multiple files"
This commit is contained in:
@@ -46,11 +46,14 @@ function count_commits {
|
|||||||
git clone $TEMPEST_GIT_URL $tmpdir
|
git clone $TEMPEST_GIT_URL $tmpdir
|
||||||
cd $tmpdir
|
cd $tmpdir
|
||||||
|
|
||||||
# get only commits that touch our files
|
for file in $files; do
|
||||||
commits="$(git log --format=format:%h --no-merges --follow -- $files)"
|
# get only commits that touch our files
|
||||||
# then their merge commits - which works fina since we merge commits
|
commits="$commits $(git log --format=format:%h --no-merges --follow -- $file)"
|
||||||
# individually.
|
# then their merge commits - which works fina since we merge commits
|
||||||
merge_commits="$(git log --format=format:%h --merges --first-parent -- $files)"
|
# individually.
|
||||||
|
merge_commits="$merge_commits $(git log --format=format:%h --merges --first-parent -- $file)"
|
||||||
|
done
|
||||||
|
|
||||||
pattern="\n$(echo $commits $merge_commits | sed -e 's/ /\\|/g')"
|
pattern="\n$(echo $commits $merge_commits | sed -e 's/ /\\|/g')"
|
||||||
|
|
||||||
# order them by filtering each one in the order it appears on rev-list
|
# order them by filtering each one in the order it appears on rev-list
|
||||||
|
Reference in New Issue
Block a user