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
ff99a72f
Kaydet (Commit)
ff99a72f
authored
Tem 18, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
change obsolete isfile to isvalid; add lock and unlock commands
üst
ec9ea611
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
rrcs.py
Demo/pdist/rrcs.py
+10
-2
No files found.
Demo/pdist/rrcs.py
Dosyayı görüntüle @
ff99a72f
...
...
@@ -48,7 +48,7 @@ def checkin(x, copts, fn):
f
=
open
(
fn
)
data
=
f
.
read
()
f
.
close
()
new
=
not
x
.
is
file
(
fn
)
new
=
not
x
.
is
valid
(
fn
)
if
not
new
and
same
(
x
,
copts
,
fn
,
data
):
print
"
%
s: unchanged since last checkin"
%
fn
return
...
...
@@ -64,6 +64,12 @@ def checkout(x, copts, fn):
f
.
write
(
data
)
f
.
close
()
def
lock
(
x
,
copts
,
fn
):
x
.
lock
(
fn
)
def
unlock
(
x
,
copts
,
fn
):
x
.
unlock
(
fn
)
def
info
(
x
,
copts
,
fn
):
dict
=
x
.
info
(
fn
)
keys
=
dict
.
keys
()
...
...
@@ -77,7 +83,7 @@ def head(x, copts, fn):
print
fn
,
head
def
list
(
x
,
copts
,
fn
):
if
x
.
is
file
(
fn
):
if
x
.
is
valid
(
fn
):
print
fn
def
log
(
x
,
copts
,
fn
):
...
...
@@ -148,6 +154,8 @@ commands = {
'info'
:
(
''
,
info
),
'head'
:
(
''
,
head
),
'list'
:
(
''
,
list
),
'lock'
:
(
''
,
lock
),
'unlock'
:
(
''
,
unlock
),
'log'
:
(
'bhLRtd:l:r:s:w:V:'
,
log
),
'diff'
:
(
'c'
,
diff
),
}
...
...
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