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
464f62b6
Commit
464f62b6
authored
Jun 23, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added support for -L flag (local operation)
parent
2ba1b4c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
Demo/pdist/rcsclient.py
Demo/pdist/rcsclient.py
+17
-5
No files found.
Demo/pdist/rcsclient.py
View file @
464f62b6
"Customize this file to change the default client etc."
"""Customize this file to change the default client etc.
(In general, it is probably be better to make local operation the
default and to require something like an RCSSERVER environment
variable to enable remote operation.)
"""
import
string
...
...
@@ -8,7 +14,7 @@ import string
HOST
=
'voorn.cwi.nl'
PORT
=
4127
VERBOSE
=
1
LOCAL
=
0
import
client
...
...
@@ -25,6 +31,7 @@ def openrcsclient(opts = []):
host
=
HOST
port
=
PORT
verbose
=
VERBOSE
local
=
LOCAL
directory
=
None
for
o
,
a
in
opts
:
if
o
==
'-h'
:
...
...
@@ -42,9 +49,14 @@ def openrcsclient(opts = []):
verbose
=
verbose
+
1
if
o
==
'-q'
:
verbose
=
0
address
=
(
host
,
port
)
# XXX For local operation, instantiate RCSProxy.RCSProxyLocal() here
x
=
RCSProxyClient
(
address
,
verbose
)
if
o
==
'-L'
:
local
=
1
if
local
:
import
RCSProxy
x
=
RCSProxy
.
RCSProxyLocal
()
else
:
address
=
(
host
,
port
)
x
=
RCSProxyClient
(
address
,
verbose
)
if
not
directory
:
try
:
directory
=
open
(
"CVS/Repository"
).
readline
()
...
...
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