]> thyrsus.com Git - rcs-fast-import.git/commitdiff
Checkout options implemented.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 11 Nov 2010 14:25:48 +0000 (09:25 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 11 Nov 2010 14:25:48 +0000 (09:25 -0500)
rcs-fast-import

index ca81c8522f124e0ffb2cc6421eb0ef7dd65522d4..9f9ea2379f324de1abdd32aebbca17f458d02762 100755 (executable)
@@ -8,7 +8,6 @@
 #
 # TO DO:
 #   * Branch structure!
-#   * Checkout options
 #
 """
 Usage: rcs-fast-import [-v] [-u] [-l] [-d] [-n] [-V] 
@@ -613,7 +612,10 @@ class RCS:
         shutil.copy(RCS.master(source), RCS.master(target))
     def checkout(self, switch):
         "Post-conversion actions."
-        pass
+        if switch != '-l':
+            do_or_die("rcs -u %s" % (" ".join(RCS.rcsfiles()),))
+            if switch == '-u':
+                do_or_die("co -u %s" % (" ".join(RCS.rcsfiles()),))
 
 if __name__ == '__main__':
     (options, arguments) = getopt.getopt(sys.argv[1:], "dlnuvV?")