From: Eric S. Raymond Date: Thu, 11 Nov 2010 14:25:48 +0000 (-0500) Subject: Checkout options implemented. X-Git-Tag: 0.1~60 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=5482b7edc1a8c13f2188559293705258b989f51f;p=rcs-fast-import.git Checkout options implemented. --- 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?")