croak("%s is not registered." % arg)
else:
metadata = RCSLog(arg)
- sys.stderr.write("Foo! %s\n" % arg)
if not comment:
editor = os.getenv("EDITOR") or "emacsclient"
commentfile = "/tmp/src%dtmp" % os.getpid()
"copyto": copyto_method,
}
-if __name__ == "__main__":
-
+if __name__ == "__main__":
command = list(sys.argv[1:])
+ explicit = False
while command and command[0].startswith("-"):
if command[0] == '-d':
debug += 1
elif command[0] == '-T':
pseudotime = True
elif command[0] == '-S':
- repodir = command[1]
+ repodir = command[1]
+ explicit = True
command.pop(0)
command.pop(0)
+
+ # RCS backwards-compatibility hack
+ if not explicit and not os.path.exists(repodir) and os.path.exists("RCS"):
+ repodir = "RCS"
+
if not command:
help_method()
else:
*src* [command]
== DESCRIPTION ==
+
SRC (or src) is simple revision control, a version-control system for
single-file projects by solo developers and authors. It modernizes the
venerable RCS, hence the anagrammatic acronym. The desigh is
only if the operation failed.
Other commands (add, commit, checkout, tag creation and deletion,
-moveto) give you a success message per file when operating on multiple
-files, so you will not be in doubt about which operation succeeded.
-This behavior can be suppressed with the -q option, placed 'before'
-the subcommand word.
+moveto, copyto) give you a success message per file when operating on
+multiple files, so you will not be in doubt about which operation
+succeeded. This behavior can be suppressed with the -q option, placed
+'before' the subcommand word.
+
+== BACKWARD COMPATIBILITY ==
+
+SRC history files are RCS master files. There is no hidden state.
+
+In order to maintain complete backwards compatibility, one compromise
+was made: any commit comment containing a string exactly matching an
+RCS log delimiter (a long string of "-" characters) will be rejected
+as malformed.
+
+By default, history files are kept in a hidden subdirectory named
+".src". But if you have an RCS subdirectory and no .src, SRC
+will quietly operate on the files in the RCS directory.
== DEBUGGING OPTIONS ==
-These will be of interet mainly to developers"
+These will be of interet mainly to developers.
A '-d' option before the main command word turns on debugging
messages; it can be repeated for higher debugging levels.
This is a proof-of-concept alpha release. The 'branch' command is not
yet implemented; it is described here to document the design.
-== IMPLEMENTATION NOTE ==
-SRC presently uses RCS for back-end storage. This may change in the future.
-
== REPORTING BUGS ==
Report bugs to Eric S. Raymond <esr@thyrsus.com>. The project page is
at http://catb.org/~esr/src