From 98d7f0162034a920fa33843b1f0a57d8921cab37 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 13 Jul 2007 14:19:33 +0000 Subject: [PATCH] Better way to detect branches. --- sccs2rcs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sccs2rcs b/sccs2rcs index 0113bcc..7236830 100755 --- 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 -- 2.43.0