Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
8b7b3453
Kaydet (Commit)
8b7b3453
authored
Ock 07, 2003
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use regular expressions for branch matching, to avoid including
changes on a sub-branch into output for a given branch.
üst
373c7412
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
logmerge.py
Tools/scripts/logmerge.py
+11
-8
No files found.
Tools/scripts/logmerge.py
Dosyayı görüntüle @
8b7b3453
...
...
@@ -33,7 +33,7 @@ from their output.
"""
import
os
,
sys
,
getopt
import
os
,
sys
,
getopt
,
re
sep1
=
'='
*
77
+
'
\n
'
# file separator
sep2
=
'-'
*
28
+
'
\n
'
# revision separator
...
...
@@ -100,7 +100,11 @@ def digest_chunk(chunk, branch=None):
break
else
:
working_file
=
None
if
branch
and
branch
!=
"HEAD"
:
if
branch
is
None
:
pass
elif
branch
==
"HEAD"
:
branch
=
re
.
compile
(
r"^\d+\.\d+$"
)
else
:
revisions
=
{}
key
=
'symbolic names:
\n
'
found
=
0
...
...
@@ -116,10 +120,11 @@ def digest_chunk(chunk, branch=None):
else
:
found
=
0
rev
=
revisions
.
get
(
branch
)
branch
=
re
.
compile
(
r"^<>$"
)
# <> to force a mismatch by default
if
rev
:
if
rev
.
find
(
'.0.'
)
>=
0
:
rev
=
rev
.
replace
(
'.0.'
,
'.'
)
+
'.'
branch
=
rev
or
"<>"
# <> to force a mismatch
rev
=
rev
.
replace
(
'.0.'
,
'.'
)
branch
=
re
.
compile
(
r"^"
+
re
.
escape
(
rev
)
+
r"\.\d+$"
)
records
=
[]
for
lines
in
chunk
[
1
:]:
revline
=
lines
[
0
]
...
...
@@ -144,13 +149,11 @@ def digest_chunk(chunk, branch=None):
if
len
(
words
)
>=
2
and
words
[
0
]
==
'revision'
:
rev
=
words
[
1
]
else
:
# No 'revision' line -- weird...
rev
=
None
text
.
insert
(
0
,
revline
)
if
branch
:
if
branch
==
"HEAD"
:
if
rev
is
not
None
and
rev
.
count
(
'.'
)
>
1
:
continue
elif
rev
is
None
or
not
rev
.
startswith
(
branch
):
if
rev
is
None
or
not
branch
.
match
(
rev
):
continue
records
.
append
((
date
,
working_file
,
rev
,
author
,
text
))
return
records
...
...
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