4
# guido's version, from rcsbump,v 1.2 1995/06/22 21:27:27 bwarsaw Exp
6
# Python script for bumping up an RCS major revision number.
14
majorrev_re = re.compile('^[0-9]+')
21
files = dir.listfiles()
24
# get the major revnumber of the file
25
headbranch = dir.info(file)['head']
26
majorrev_re.match(headbranch)
27
majorrev = string.atoi(majorrev_re.group(0)) + 1
29
if not dir.islocked(file):
30
dir.checkout(file, WITHLOCK)
32
msg = "Bumping major revision number (to %d)" % majorrev
33
dir.checkin((file, "%s.0" % majorrev), msg, "-f")