--- /dev/null
+ BSD LICENSE
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+Neither name of the this project nor the names of its contributors
+may be used to endorse or promote products derived from this software
+without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- /dev/null
+#
+# makefile for src
+#
+VERS=$(shell sed <src -n -e '/version=\(.*\)/s//\1/p')
+
+SOURCES = README COPYING NEWS src src.xml Makefile control
+
+all: src.1
+
+.SUFFIXES: .html .asc .txt .1
+
+# Requires asciidoc and xsltproc/docbook stylesheets.
+.asc.1:
+ a2x --doctype manpage --format manpage -D . $<
+.asc.html:
+ a2x --doctype manpage --format xhtml -D . $<
+ rm -f docbook-xsl.css
+
+clean:
+ rm -f *~ *.1 *.html *.tar.gz MANIFEST
+ rm -fr .rs* typescript test/typescript
+
+src-$(VERS).tar.gz: $(SOURCES) src.1
+ @ls $(SOURCES) src.1 | sed s:^:src-$(VERS)/: >MANIFEST
+ @(cd ..; ln -s src src-$(VERS))
+ (cd ..; tar -czvf src/src-$(VERS).tar.gz `cat src/MANIFEST`)
+ @(cd ..; rm src-$(VERS))
+
+COMMON_PYLINT = --rcfile=/dev/null --reports=n \
+ --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
+ --dummy-variables-rgx='^_'
+PYLINTOPTS = "C0103,C0301,C0326,C0111,W0110,W0141,W0311,W0312,W0603"
+pylint:
+ @pylint $(COMMON_PYLINT) --disable=$(PYLINTOPTS) src
+
+version:
+ @echo $(VERS)
+
+dist: src-$(VERS).tar.gz
+
+release: src-$(VERS).tar.gz src.html
+ shipper version=$(VERS) | sh -e -x
--- /dev/null
+` src project news
+
+Repository head:
+ Initial proof-of-concept release.
--- /dev/null
+ Simple Revision Control
+
+The venerable RCS (Revsion Control System) has survived into the era
+of distributed version control because it fills a niche: sometimes you
+only *want* to track changes in single files at a time - for example,
+if you have a directory full of documents with separate histories.
+
+SRC (Simple Revision Control) is RCS, reloaded. It remains
+determinedly file-oriented and doesn't even track the committer of a
+change (because that's always you), but incorporates the design and
+user-interface lessons of modern systems. It features sequential
+revision numbers, lockless operation, embedded command help, and a
+command set that will seem familiar to users of Subversion, Mercurial,
+and Git.
+
+ Eric S. Raymond
+ November 2014
#
import sys, os, subprocess, time
-version = 0.1
+version=0.1
def screenwidth():
"Return the current width of the terminal window."
src branch [delete] ['branchname']
Create, switch to, or delete a branch. With no arguments, list branches.
-src tag [delete] ['tagname'] ['revspec']
+src tag [delete] ['tagname'] ['revspec'] ['file'...]
Create, switch to, or delete a tag. With no arguments, list tags.
src list ['revision-spec'] ['file'...]