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
2fa5a7fc
Kaydet (Commit)
2fa5a7fc
authored
Tem 01, 1991
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use posix.popen to read output from a command instead if command.get*.
üst
9c5c8082
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
xxci.py
Tools/scripts/xxci.py
+11
-9
No files found.
Tools/scripts/xxci.py
Dosyayı görüntüle @
2fa5a7fc
#! /ufs/guido/bin/sgi/python
#! /usr/local/python
# xxci
...
...
@@ -57,18 +58,19 @@ def badsuffix(file):
def
go
(
args
):
for
file
in
args
:
print
file
+
':'
if
run
(
'rcsdiff -c'
,
file
):
if
differing
(
file
):
sts
=
posix
.
system
(
'rcsdiff '
+
file
)
# ignored
if
askyesno
(
'Check in '
+
file
+
' ? '
):
sts
=
run
(
'rcs -l'
,
file
)
# ignored
# can't use run() here because it's interactive
sts
=
posix
.
system
(
'rcs -l '
+
file
)
# ignored
sts
=
posix
.
system
(
'ci -l '
+
file
)
def
run
(
cmd
,
file
):
sts
,
output
=
commands
.
getstatusoutput
(
cmd
+
commands
.
mkarg
(
file
))
if
sts
:
print
output
print
'Exit status'
,
sts
return
sts
def
differing
(
file
):
try
:
this
=
open
(
file
,
'r'
)
.
read
()
that
=
posix
.
popen
(
'co -p '
+
file
+
' 2>/dev/null'
,
'r'
)
.
read
()
return
this
<>
that
except
:
return
1
def
askyesno
(
prompt
):
s
=
raw_input
(
prompt
)
...
...
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