From: Eric S. Raymond Date: Thu, 11 Nov 2010 15:29:56 +0000 (-0500) Subject: Enable the twirling-baton prompt. X-Git-Tag: 0.1~58 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=d5b556fbfedca371f059a1b9ada83053bea0b267;p=rcs-fast-import.git Enable the twirling-baton prompt. --- diff --git a/rcs-fast-import b/rcs-fast-import index 9f9ea23..c34cde9 100755 --- a/rcs-fast-import +++ b/rcs-fast-import @@ -16,7 +16,7 @@ Break the content of a git-fast-import stream on stdin into individual RCS master files in RCS subdirectories of the corresponding directory structure. With the -v option, emit a twirling-baton prompt during stream read, and -progress messages during RCS writes. +more progress messages during RCS writes. With the -l option, check out and lock all resulting files at their latest revisions; with the -u option, check out but do not lock. @@ -281,7 +281,7 @@ class Repository: os.mkdir(self.subdir()) except OSError: self.error("can't create operating directory", atline=False) - with Baton("rcs-fast-import: from %s" % os.path.relpath(fp.name), enable=progress) as baton: + with Baton("rcs-fast-import:", enable=progress) as baton: self.import_line = 0 linebuffers = [] ncommits = 0 @@ -639,7 +639,7 @@ if __name__ == '__main__': vcs = RCS() try: with Repository() as repo: - repo.fast_import(sys.stdin) + repo.fast_import(sys.stdin, progress=verbose>0) for event in repo.commits(): committables = [] for op in event.fileops: diff --git a/rcs-fast-import.xml b/rcs-fast-import.xml index 279ce5f..d41777c 100644 --- a/rcs-fast-import.xml +++ b/rcs-fast-import.xml @@ -35,7 +35,7 @@ stdin into individual RCS master files in RCS subdirectories of the corresponding directory structure. With the -v option, emit a twirling-baton prompt during stream read, and -progress messages during RCS writes. +more progress messages during RCS writes. With the -l option, check out and lock all resulting files at their latest revisions; with the -u option, check out but do not lock.