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
67211495
Kaydet (Commit)
67211495
authored
Şub 22, 2012
tarafından
Nadeem Vawda
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge: #14053: Fix "make patchcheck" to work with MQ.
Patch by Francisco Martín Brugué
üst
e7ad4190
9f64f731
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
NEWS
Misc/NEWS
+3
-0
patchcheck.py
Tools/scripts/patchcheck.py
+12
-0
No files found.
Misc/NEWS
Dosyayı görüntüle @
67211495
...
@@ -1990,6 +1990,9 @@ IDLE
...
@@ -1990,6 +1990,9 @@ IDLE
Tools/Demos
Tools/Demos
-----------
-----------
- Issue #14053: patchcheck.py ("make patchcheck") now works with MQ patches.
Patch by Francisco Martín Brugué.
- Issue #13930: 2to3 is now able to write its converted output files to another
- Issue #13930: 2to3 is now able to write its converted output files to another
directory tree as well as copying unchanged files and altering the file
directory tree as well as copying unchanged files and altering the file
suffix. See its new -o, -W and --add-suffix options. This makes it more
suffix. See its new -o, -W and --add-suffix options. This makes it more
...
...
Tools/scripts/patchcheck.py
Dosyayı görüntüle @
67211495
...
@@ -36,6 +36,16 @@ def status(message, modal=False, info=None):
...
@@ -36,6 +36,16 @@ def status(message, modal=False, info=None):
return
decorated_fxn
return
decorated_fxn
def
mq_patches_applied
():
"""Check if there are any applied MQ patches."""
cmd
=
'hg qapplied'
with
subprocess
.
Popen
(
cmd
.
split
(),
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
as
st
:
bstdout
,
_
=
st
.
communicate
()
return
st
.
returncode
==
0
and
bstdout
@status
(
"Getting the list of files that have been added/changed"
,
@status
(
"Getting the list of files that have been added/changed"
,
info
=
lambda
x
:
n_files_str
(
len
(
x
)))
info
=
lambda
x
:
n_files_str
(
len
(
x
)))
def
changed_files
():
def
changed_files
():
...
@@ -44,6 +54,8 @@ def changed_files():
...
@@ -44,6 +54,8 @@ def changed_files():
sys
.
exit
(
'need a checkout to get modified files'
)
sys
.
exit
(
'need a checkout to get modified files'
)
cmd
=
'hg status --added --modified --no-status'
cmd
=
'hg status --added --modified --no-status'
if
mq_patches_applied
():
cmd
+=
' --rev qparent'
with
subprocess
.
Popen
(
cmd
.
split
(),
stdout
=
subprocess
.
PIPE
)
as
st
:
with
subprocess
.
Popen
(
cmd
.
split
(),
stdout
=
subprocess
.
PIPE
)
as
st
:
return
[
x
.
decode
()
.
rstrip
()
for
x
in
st
.
stdout
]
return
[
x
.
decode
()
.
rstrip
()
for
x
in
st
.
stdout
]
...
...
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