only diff differing files

add PostUsageMessage
This commit is contained in:
Guido van Rossum 1995-04-28 19:24:50 +00:00
parent 177df7d7c9
commit 2d2a60e29b
1 changed files with 5 additions and 1 deletions

View File

@ -113,6 +113,8 @@ class MyFile(File):
self.file self.file
def diff(self, opts = []): def diff(self, opts = []):
if self.lsum == self.rsum:
return
import tempfile import tempfile
flags = '' flags = ''
for o, a in opts: for o, a in opts:
@ -188,7 +190,9 @@ class rcvs(CommandFrameWork):
GlobalFlags = 'd:h:p:qv' GlobalFlags = 'd:h:p:qv'
UsageMessage = \ UsageMessage = \
"usage: rcvs [-d directory] [-h host] [-p port] [-q] [-v] subcommand arg ..." "usage: rcvs [-d directory] [-h host] [-p port] [-q] [-v] [subcommand arg ...]"
PostUsageMessage = \
"If no subcommand is given, the status of all files is listed"
def __init__(self): def __init__(self):
"""Constructor.""" """Constructor."""