From 26da700859b2ede097e0e19ada08d5e3c64a780c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 11 Nov 2010 21:21:19 -0500 Subject: [PATCH] Disable journaling until we need it. --- rcs-fast-import | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/rcs-fast-import b/rcs-fast-import index 4a31bbe..4f7668c 100755 --- a/rcs-fast-import +++ b/rcs-fast-import @@ -548,13 +548,13 @@ class RCS: "Class encapsulating RCS version-control operations." historyfile = ".HISTORY" def __init__(self): - # Rev-to-branch map will go here - if not os.path.exists("RCS"): - try: - os.makedirs("RCS") - except OSError: - raise FatalException("can't create RCS directory.") - file(RCS.historyfile, "w").close() + if verbose: + if not os.path.exists("RCS"): + try: + os.makedirs("RCS") + except OSError: + raise FatalException("can't create RCS directory.") + file(RCS.historyfile, "w").close() @staticmethod def master(filename): "Return the master file corresponding to a specified filename." @@ -592,7 +592,8 @@ class RCS: fp.write(path) fp.write("\n") def precommit(self, event): - RCS.record("commit") + if verbose: + RCS.record("commit") def modify(self, event, path, mode, copyfile, roundtrip): "Perform RCS file checkins and modifications," if mode == "160000": @@ -672,7 +673,8 @@ class RCS: do_or_die("rcs -u %s" % (" ".join(RCS.rcsfiles()),)) if switch == '-u': do_or_die("co -u %s" % (" ".join(RCS.rcsfiles()),)) - os.rename(RCS.historyfile, os.path.join("RCS", RCS.historyfile)) + if verbose: + os.rename(RCS.historyfile, os.path.join("RCS", RCS.historyfile)) if __name__ == '__main__': (options, arguments) = getopt.getopt(sys.argv[1:], "lnpuvV?") -- 2.43.0