From 5482b7edc1a8c13f2188559293705258b989f51f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 11 Nov 2010 09:25:48 -0500 Subject: [PATCH] Checkout options implemented. --- rcs-fast-import | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rcs-fast-import b/rcs-fast-import index ca81c85..9f9ea23 100755 --- a/rcs-fast-import +++ b/rcs-fast-import @@ -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?") -- 2.43.0