From 2d2a60e29bf8e8131ffe4b2e1e52d0ed28ce953a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 28 Apr 1995 19:24:50 +0000 Subject: [PATCH] only diff differing files add PostUsageMessage --- Demo/pdist/rcvs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Demo/pdist/rcvs.py b/Demo/pdist/rcvs.py index 462025652bb..d9d1c55d624 100755 --- a/Demo/pdist/rcvs.py +++ b/Demo/pdist/rcvs.py @@ -113,6 +113,8 @@ def commit(self, message = ""): self.file def diff(self, opts = []): + if self.lsum == self.rsum: + return import tempfile flags = '' for o, a in opts: @@ -188,7 +190,9 @@ class rcvs(CommandFrameWork): GlobalFlags = 'd:h:p:qv' 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): """Constructor."""