author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 24 Sep 2007 12:40:44 +0000 (08:40 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 25 Sep 2007 01:48:38 +0000 (21:48 -0400) | ||
commit | 81d4d3dddc5e96aea45a2623c9b1840491348b92 | |
tree | b166dc46ce198b7062ffeed5bacfe87fea5702ab | tree | snapshot |
parent | 40f86af01b061fbbd1e46d125280073322bf9f33 | commit | diff |
git-gui: Keep the UI responsive while counting objects in clone
If we are doing a "standard" clone by way of hardlinking the
objects (or copying them if hardlinks are not available) the
UI can freeze up for a good few seconds while Tcl scans all
of the object directories. This is espeically noticed on a
Windows system when you are working off network shares and
need to wait for both the NT overheads and the network.
We now show a progress bar as we count the objects and build
our list of things to copy. This keeps the user amused and
also makes sure we run the Tk event loop often enough that
the window can still be dragged around the desktop.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If we are doing a "standard" clone by way of hardlinking the
objects (or copying them if hardlinks are not available) the
UI can freeze up for a good few seconds while Tcl scans all
of the object directories. This is espeically noticed on a
Windows system when you are working off network shares and
need to wait for both the NT overheads and the network.
We now show a progress bar as we count the objects and build
our list of things to copy. This keeps the user amused and
also makes sure we run the Tk event loop often enough that
the window can still be dragged around the desktop.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/choose_repository.tcl | diff | blob | history |