]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
only diff differing files
authorGuido van Rossum <guido@python.org>
Fri, 28 Apr 1995 19:24:50 +0000 (19:24 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 28 Apr 1995 19:24:50 +0000 (19:24 +0000)
add PostUsageMessage

Demo/pdist/rcvs.py

index 462025652bb6f6551f42d7f567314356cb8e3b57..d9d1c55d6245359354c1bff33389fc44a40f59c8 100755 (executable)
@@ -113,6 +113,8 @@ class MyFile(File):
                              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."""