]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
if __name__ etc
authorGuido van Rossum <guido@python.org>
Thu, 27 Apr 1995 21:28:20 +0000 (21:28 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 27 Apr 1995 21:28:20 +0000 (21:28 +0000)
print filename when asking log message

Demo/pdist/rrcs.py

index 02d4e97f5ec4651037c26eddd00e2e174ef2677e..70895ea567f8d0d0eb0744d18ebdfa696ca241f4 100755 (executable)
@@ -52,6 +52,7 @@ def checkin(x, copts, fn):
        if not new and same(x, copts, fn, data):
                print "%s: unchanged since last checkin" % fn
                return
+       print "Checking in", fn, "..."
        message = asklogmessage(new)
        messages = x.put(fn, data, message)
        if messages:
@@ -151,4 +152,5 @@ commands = {
        'diff': ('c', diff),
        }
 
-main()
+if __name__ == '__main__':
+       main()