]> thyrsus.com Git - sccs2rcs.git/commitdiff
This version gets the logging right.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 12:42:13 +0000 (12:42 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 12:42:13 +0000 (12:42 +0000)
sccs2rcs

index 586fde1b30bf95057a9215ebe0874e49a2eab1be..a697e752299343c90b30575adb5b54211c7869ae 100755 (executable)
--- a/sccs2rcs
+++ b/sccs2rcs
@@ -104,8 +104,8 @@ def sccsfile(f):
 
 def progress(msg):
     global logtext
-    msg = "sccs2rcs: " + msg + "\n"
-    logtext += msg 
+    msg = "sccs2rcs: " + msg
+    logtext += msg + "\n"
     print msg
 
 def get_output(command):
@@ -133,7 +133,8 @@ Original unchanged history in ./SCCS.
     sys.exit(1)
 
 def warn(msg):
-    msg = "sccs2rcs: warning, "
+    global logtext
+    msg = "sccs2rcs: warning, " + msg
     logtext += msg + "\n" 
     print >>sys.stderr, msg
 
@@ -230,7 +231,7 @@ if __name__ == '__main__':
             progress("==> file %s, rev=%s, date=%s, author=%s" \
                   % (file, rev, rcsdate, author)) 
             get_output_or_die("get -e -r%s SCCS/s.%s" % (rev, file))
-            print "checked out of SCCS"
+            progress("checked out of SCCS")
 
             # replace SCCS keywords with RCS keywords
             try: