Go to file
Shawn O. Pearce 2810cbc778 Only display a progress meter once we spend 0.5 seconds on a task
The point of the progress meter is to let the user know that the
task is progressing, and give them a chance to estimate when it will
be complete.  If the task completes in under 0.5 seconds then it
is sufficiently fast enough that the user doesn't need to be kept
up-to-date on its progress; in fact showing the meter may just slow
the task down waiting on the tty to redraw.

We now delay the progress meter 0.5 seconds (or 1 second if the
Python time.time() function isn't accurate enough) to avoid any
really fast tasks, like a no-op local sync.

Signed-off-by: Shawn O. Pearce <sop@google.com>
2009-04-18 10:09:16 -07:00
docs Add a 'repo manifest' command whose help is the manifest file format 2009-03-04 14:26:50 -08:00
hooks Install a default pre-auto-gc hook in all repositories 2008-11-03 11:00:44 -08:00
subcmds Only compute commits in repo upload if we need to show a prompt 2009-04-17 20:54:39 -07:00
.gitignore Initial Contribution 2008-10-21 07:00:00 -07:00
color.py Change repo sync to be more friendly when updating the tree 2009-04-16 11:21:18 -07:00
command.py Don't permit users to run repo status in a mirror client 2009-03-03 17:47:06 -08:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Make repo's editor work when the editor is a commandline with 2008-11-14 21:12:44 -05:00
error.py Report better errors when a project revision is invalid 2009-03-02 12:56:08 -08:00
git_command.py Fix repo --trace to show ref and config loads 2009-04-18 09:54:51 -07:00
git_config.py Fix repo --trace to show ref and config loads 2009-04-18 09:54:51 -07:00
git_refs.py Fix repo --trace to show ref and config loads 2009-04-18 09:54:51 -07:00
main.py Fix repo --trace to show ref and config loads 2009-04-18 09:54:51 -07:00
manifest.py Add repo manifest -o to save a manifest 2009-03-05 10:32:38 -08:00
pager.py Don't start the pager if stdout is a pipe 2009-04-01 07:24:22 -07:00
progress.py Only display a progress meter once we spend 0.5 seconds on a task 2009-04-18 10:09:16 -07:00
project.py Avoid unnecessary git symbolic-ref calls during repo sync 2009-04-17 21:03:45 -07:00
remote.py Add <remote project-name="..."> attribute within projects 2008-11-06 11:23:06 -08:00
repo Correct the REPO_URL in the wrapper script to android.git.kernel.org 2008-12-18 07:21:32 -08:00
trace.py Fix repo --trace to show ref and config loads 2009-04-18 09:54:51 -07:00