PATH:
usr
/
lib64
/
python2.7
/
Demo
/
pdist
#! /usr/bin/python # -*- python -*- # # guido's version, from rcsbump,v 1.2 1995/06/22 21:27:27 bwarsaw Exp # # Python script for bumping up an RCS major revision number. import sys import re import rcslib import string WITHLOCK = 1 majorrev_re = re.compile('^[0-9]+') dir = rcslib.RCS() if sys.argv[1:]: files = sys.argv[1:] else: files = dir.listfiles() for file in files: # get the major revnumber of the file headbranch = dir.info(file)['head'] majorrev_re.match(headbranch) majorrev = string.atoi(majorrev_re.group(0)) + 1 if not dir.islocked(file): dir.checkout(file, WITHLOCK) msg = "Bumping major revision number (to %d)" % majorrev dir.checkin((file, "%s.0" % majorrev), msg, "-f")
[-] mac.pyc
[edit]
[-] FSProxy.pyo
[edit]
[-] security.py
[edit]
[-] rcsbump
[edit]
[-] FSProxy.pyc
[edit]
[-] rrcs
[edit]
[-] RCSProxy.pyc
[edit]
[-] cvslib.pyc
[edit]
[-] rcsclient.py
[edit]
[-] rrcs.py
[edit]
[+]
..
[-] sumtree.py
[edit]
[-] README
[edit]
[-] makechangelog.pyo
[edit]
[-] rcsclient.pyo
[edit]
[-] makechangelog.py
[edit]
[-] rcvs
[edit]
[-] cmptree.pyo
[edit]
[-] server.pyc
[edit]
[-] rcvs.pyc
[edit]
[-] security.pyc
[edit]
[-] rrcs.pyc
[edit]
[-] client.py
[edit]
[-] sumtree.pyc
[edit]
[-] rcvs.pyo
[edit]
[-] RCSProxy.pyo
[edit]
[-] security.pyo
[edit]
[-] rcslib.pyo
[edit]
[-] client.pyc
[edit]
[-] rcslib.py
[edit]
[-] cvslock.pyc
[edit]
[-] mac.pyo
[edit]
[-] cmptree.pyc
[edit]
[-] makechangelog.pyc
[edit]
[-] server.py
[edit]
[-] cmdfw.pyc
[edit]
[-] rcvs.py
[edit]
[-] rcsclient.pyc
[edit]
[-] rcslib.pyc
[edit]
[-] cvslock.py
[edit]
[-] rrcs.pyo
[edit]
[-] mac.py
[edit]
[-] client.pyo
[edit]
[-] cmdfw.pyo
[edit]
[-] sumtree.pyo
[edit]
[-] cvslock.pyo
[edit]
[-] cvslib.py
[edit]
[-] cmdfw.py
[edit]
[-] server.pyo
[edit]
[-] cmptree.py
[edit]
[-] cvslib.pyo
[edit]
[-] FSProxy.py
[edit]
[-] RCSProxy.py
[edit]