]> thyrsus.com Git - sccs2rcs.git/commitdiff
:Dm: is a 1-origin month.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 13:46:40 +0000 (13:46 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 13:46:40 +0000 (13:46 +0000)
sccs2rcs

index 4479f58869ae8f2d29de17d1a77164858bb462e6..1289bec750e613ce182805d5b28835abc3f1bb45 100755 (executable)
--- a/sccs2rcs
+++ b/sccs2rcs
@@ -242,7 +242,7 @@ if __name__ == '__main__':
             else:
                 year = "19" + year
 
-            rcsdate = day + " " + months[int(month)] + " " + year + " " + tod
+            rcsdate = day + " " + months[int(month)-1] + " " + year + " " + tod
             progress("==> file %s, rev=%s, date=%s, author=%s" \
                   % (stem, rev, rcsdate, author)) 
             get_output_or_die("get -e -r%s SCCS/s.%s" % (rev, stem))
@@ -282,6 +282,9 @@ if __name__ == '__main__':
                 lckrev = ".".join(revparts[:-1])
                 if re.match(r"[0-9]+\."):
                     # need to lock the branch -- it is OK if the lock fails
+                    # Above comment was from Brian Berliner's csh version,
+                    # but it's not at all clear why this lock can be allowed
+                    # to fail while the trunk one must succeed.
                     get_output("rcs -l%s %s" % (lckrev, stem))
                     progress("got branch lock")
                 else: