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
aa95bfb5
Kaydet (Commit)
aa95bfb5
authored
Eki 20, 2018
tarafından
Alexey Izbyshev
Kaydeden (comit)
Victor Stinner
Eki 20, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-32256: Make patchcheck.py work for out-of-tree builds (GH-4760)
Set SRCDIR as the current directory for git.
üst
d5b4f1b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
patchcheck.py
Tools/scripts/patchcheck.py
+9
-3
No files found.
Tools/scripts/patchcheck.py
Dosyayı görüntüle @
aa95bfb5
...
@@ -48,7 +48,9 @@ def get_git_branch():
...
@@ -48,7 +48,9 @@ def get_git_branch():
"""Get the symbolic name for the current git branch"""
"""Get the symbolic name for the current git branch"""
cmd
=
"git rev-parse --abbrev-ref HEAD"
.
split
()
cmd
=
"git rev-parse --abbrev-ref HEAD"
.
split
()
try
:
try
:
return
subprocess
.
check_output
(
cmd
,
stderr
=
subprocess
.
DEVNULL
)
return
subprocess
.
check_output
(
cmd
,
stderr
=
subprocess
.
DEVNULL
,
cwd
=
SRCDIR
)
except
subprocess
.
CalledProcessError
:
except
subprocess
.
CalledProcessError
:
return
None
return
None
...
@@ -60,7 +62,9 @@ def get_git_upstream_remote():
...
@@ -60,7 +62,9 @@ def get_git_upstream_remote():
"""
"""
cmd
=
"git remote get-url upstream"
.
split
()
cmd
=
"git remote get-url upstream"
.
split
()
try
:
try
:
subprocess
.
check_output
(
cmd
,
stderr
=
subprocess
.
DEVNULL
)
subprocess
.
check_output
(
cmd
,
stderr
=
subprocess
.
DEVNULL
,
cwd
=
SRCDIR
)
except
subprocess
.
CalledProcessError
:
except
subprocess
.
CalledProcessError
:
return
"origin"
return
"origin"
return
"upstream"
return
"upstream"
...
@@ -98,7 +102,9 @@ def changed_files(base_branch=None):
...
@@ -98,7 +102,9 @@ def changed_files(base_branch=None):
else
:
else
:
cmd
=
'git status --porcelain'
cmd
=
'git status --porcelain'
filenames
=
[]
filenames
=
[]
with
subprocess
.
Popen
(
cmd
.
split
(),
stdout
=
subprocess
.
PIPE
)
as
st
:
with
subprocess
.
Popen
(
cmd
.
split
(),
stdout
=
subprocess
.
PIPE
,
cwd
=
SRCDIR
)
as
st
:
for
line
in
st
.
stdout
:
for
line
in
st
.
stdout
:
line
=
line
.
decode
()
.
rstrip
()
line
=
line
.
decode
()
.
rstrip
()
status_text
,
filename
=
line
.
split
(
maxsplit
=
1
)
status_text
,
filename
=
line
.
split
(
maxsplit
=
1
)
...
...
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