Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8bcd301c
Commit
8bcd301c
authored
Apr 28, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial revision
parent
e1220ff0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
Demo/pdist/rcsclient.py
Demo/pdist/rcsclient.py
+37
-0
No files found.
Demo/pdist/rcsclient.py
0 → 100755
View file @
8bcd301c
"Customize this file to change the default client etc."
import
string
HOST
=
'voorn.cwi.nl'
PORT
=
4127
DIRECTORY
=
'/ufs/guido/voorn/python-RCS/Demo/pdist'
VERBOSE
=
1
def
openrcsclient
(
opts
=
[]):
"open an RCSProxy client based on a list of options returned by getopt"
import
RCSProxy
host
=
HOST
port
=
PORT
directory
=
DIRECTORY
verbose
=
VERBOSE
for
o
,
a
in
opts
:
if
o
==
'-h'
:
host
=
a
if
':'
in
host
:
i
=
string
.
find
(
host
,
':'
)
host
,
p
=
host
[:
i
],
host
[
i
+
1
:]
if
p
:
port
=
string
.
atoi
(
p
)
if
o
==
'-p'
:
port
=
string
.
atoi
(
a
)
if
o
==
'-d'
:
directory
=
a
if
o
==
'-v'
:
verbose
=
verbose
+
1
if
o
==
'-q'
:
verbose
=
0
address
=
(
host
,
port
)
x
=
RCSProxy
.
RCSProxyClient
(
address
,
verbose
)
if
directory
:
x
.
cd
(
directory
)
return
x
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