]> thyrsus.com Git - sccs2rcs.git/commitdiff
Better way to detect branches.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 14:19:33 +0000 (14:19 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 13 Jul 2007 14:19:33 +0000 (14:19 +0000)
sccs2rcs

index 0113bcc252b3b7d7b45cbc05e2b58b1ddc07ac74..72368308d20636a22dc1bb77bb30ac418f5e3d1e 100755 (executable)
--- a/sccs2rcs
+++ b/sccs2rcs
@@ -280,7 +280,7 @@ if __name__ == '__main__':
                 # get RCS lock    
                 revparts = rev.split(".")
                 lckrev = ".".join(revparts[:-1])
-                if re.match(r"[0-9]+\."):
+                if rev.count(".") > 1:
                     # 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