Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4066cc6b
Kaydet (Commit)
4066cc6b
authored
Kas 18, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Kill check-merged.sh, 'git cherry' actually gives better results.
Change-Id: Ia4163f77f5267f6cb714369fc9a4cfbb901019df
üst
4bf891db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
36 deletions
+0
-36
check-merged.sh
bin/check-merged.sh
+0
-36
No files found.
bin/check-merged.sh
deleted
100755 → 0
Dosyayı görüntüle @
4bf891db
#! /bin/bash
#
# check that master contains all the patches from a branch
# and list those that are missing
#
BRANCH
=
"
$1
"
[
-z
"
$BRANCH
"
]
&&
{
cat
1>&2
<<
EOF
check-merged.sh branchname
Checks that all the patches from branch 'branchname' are in master, and
reports the commits that are not.
The check is based on the Change-Id's, so if some commits are missing it, they
won't be detected as missing.
EOF
exit
1
;
}
function
collect_change_ids
{
git log
`
git merge-base origin/master
"
$1
"
`
..
"
$1
"
|
\
sed
's/^commit /XXXcommitXXX/g'
|
\
tr
'\n'
';'
|
\
sed
's/XXXcommitXXX/\n/g'
|
\
sed
-e
's/;.*Change-Id://'
-e
's/;.*$//'
|
\
grep
-v
'^$'
>
"
$2
"
}
collect_change_ids
"
$BRANCH
"
/tmp/check-merged.branch
collect_change_ids
"origin/master"
/tmp/check-merged.master
cat
/tmp/check-merged.branch |
\
while
read
COMMIT CHID
;
do
[
-n
"
$CHID
"
-a
"
$CHID
"
!=
" "
]
&&
grep
-q
"
$CHID
"
/tmp/check-merged.master
||
echo
"
$COMMIT
not in origin/master"
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment