]> thyrsus.com Git - sccs2rcs.git/commitdiff
Re-enable the directory check, add some history.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 15:03:05 +0000 (15:03 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 15:03:05 +0000 (15:03 +0000)
sccs2rcs

index 20a339498a1278aee0bda54ea8b449fe08ecfef5..80393e070c1b5df984a0c623e7900cb3cf21db67 100755 (executable)
--- a/sccs2rcs
+++ b/sccs2rcs
@@ -31,7 +31,7 @@
 # even destroyed as long as you don't tell anyone you wrote it."
 # Those were more innocent days.  This version is released under MIT terms. 
 #
-# Things to note:
+# Ken's things to note:
 #   + It will NOT delete or alter your ./SCCS history under any circumstances.
 #
 #   + Run in a directory where ./SCCS exists and where you can create ./RCS
@@ -48,7 +48,9 @@
 #     Also (for the brave only) you might consider hacking
 #     the s-file for simpler problems:  I've successfully changed
 #     the date of a delta to be in sync, then run "sccs admin -z"
-#     on the thing.
+#     on the thing [to regenerate its checksum].
+#
+# Eric's history:
 #
 # 1.1: I added some portability fixes and the -u option.  More importantly,
 # I removed the dependencies on the BSD/SV `sccs' utility; this script
 # reverse large files properly.
 #
 # 1.3: Merges in Brian Berliner's branch hack from the other fork
-# of this script, the one distributed with CVS.  That and 4 SCCS 
+# of this script, the one distributed with CVS.  That and four SCCS 
 # keyword substitutions were we only thing it did that this didn't.
 #
 # 1.4: Python rewrite describe aboved.  Interface cleanup.  Auto-checkout
 # of RCS workfiles corresponding to SCCS workfiles present when started.
+# Lifting of VC mode snapshot info.  Initial-comments file.
 #
 # Eric S. Raymond <esr@thyrsus.com>
 #
@@ -200,8 +203,8 @@ if __name__ == '__main__':
             die(filename + " is locked for edit...unlock before converting.")
     if os.path.isdir("RCS"):
         warn("RCS directory already exists.")
-        #if len(os.listdir("RCS")) > 2:        # Allow . and ..
-        #       die("RCS directory is nonempty.")
+        if len(os.listdir("RCS")) > 2: # Allow . and ..
+               die("RCS directory is nonempty.")
     else:
         try:
             os.mkdir("RCS")