# Requires Python 2.5 or newer and RCS 5.7 or newer.
#
"""
-Usage: rcs-fast-import [-v] [-p] [-u] [-l] [-n] [-V]
+Usage: rcs-fast-import [-v] [-p] [-u] [-l] [-V] [-?]
Break the content of a git-fast-import stream on stdin into individual RCS
master files in RCS subdirectories of the corresponding directory structure.
The -V option displays the program version number and exits. -? displays
this help and exits.
-
-The -n option sets dry-run mode; parse the import stream, then go through
-all logic other than actually creating files. Useful for debugging in
-combination with -v.
"""
import sys, os, getopt, re, cStringIO, subprocess, shutil
<arg choice='opt'>-l</arg>
<arg choice='opt'>-p</arg>
<arg choice='opt'>-V</arg>
+ <arg choice='opt'>-?</arg>
</cmdsynopsis>
</refsynopsisdiv>
copies checked out.</para>
<para>The -V option displays the program version number and exits. -? displays
-this help and exits.</para>
+a help message and exits.</para>
<para>In order to preserve history, D file operations do not delete
previously-created master files; instead, an empty file is checked in