From: Eric S. Raymond Date: Fri, 13 Jul 2007 14:19:33 +0000 (+0000) Subject: Better way to detect branches. X-Git-Tag: 1.4~4 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=98d7f0162034a920fa33843b1f0a57d8921cab37;p=sccs2rcs.git Better way to detect branches. --- 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