From: Eric S. Raymond Date: Fri, 13 Jul 2007 15:03:05 +0000 (+0000) Subject: Re-enable the directory check, add some history. X-Git-Tag: 1.4~1 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=89d37a25a9129afa8c7827f20abc1a3ecd42a53e;p=sccs2rcs.git Re-enable the directory check, add some history. --- diff --git a/sccs2rcs b/sccs2rcs index 20a3394..80393e0 100755 --- 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 @@ -59,11 +61,12 @@ # 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 # @@ -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")