Export one or more projects to standard output as a git fast-import stream.
The committer identification is copied from your Git configuration.
-src fast-import [-p]
+src fast-import [-p] ['file'...]
Parse a git-fast-import stream from standard input. The modifications for
each individual file become a SRC history. Mark, committer and
author data, and mark cross-references to parent commits, are preserved
in RFC-822-style headers on log comments unless the -p (plain) option
- is given, in which case this metadata is discarded.
+ is given, in which case this metadata is discarded. Give arguments to
+ restrict the files imported.
src release ['file'...]
Release locks on files. This is never necessary in a normal workflow,
def fast_import_method(*args):
"Accept a git fast-import stream on stdin, turn it into file histories."
+ if os.path.exists("RCS"):
+ croak("refusing to unpack into existing RCS directory!")
# Force -l to fit SRC's lockless interface.
do_or_die(r"rcs-fast-import -l " +" ".join(args))
+ for fn in os.listdir("RCS"):
+ corresponding = os.path.join("RCS", os.path.basename(fn))
+ if os.path.exists(fn):
+ croak("%s exists, aborting leaving RCS in place!" % corresponding)
+ os.rename(fn, corresponding)
+ shutil.rmtree("RCS")
dispatch = {
"help": help_method,
Export one or more projects as a git fast-import stream.
The committer identification is copied from your Git configuration.
-src fast-import [-p]::
+src fast-import [-p] ['files'...]::
Parse a git-fast-import stream from standard input. The modifications for
each individual file become a SRC history. Mark, committer and
author data, and mark cross-references to parent commits, are preserved
in RFC-822-style headers on log comments unless the -p (plain) option
- is given, in which case this metadata is discarded.
+ is given, in which case this metadata is discarded. Give arguments
+ to restrict the files imported.
src release ['file'...]::
Release locks on files. This is never necessary in a normal workflow,
== REQUIREMENTS ==
The RCS tools at version 4 or later must be installed and accessible
-on your path; rcs-fast-import(1) is required to support the src
-fast-import command.
+on your path; rcs-fast-import(1) at version 1.0 or later is required
+to support the src fast-import command.
== LIMITATIONS ==