]> source.dussan.org Git - jgit.git/commitdiff
PackWriter: Correct 'Compressing objects' progress message 84/2384/2
authorShawn O. Pearce <spearce@spearce.org>
Mon, 31 Jan 2011 16:37:54 +0000 (08:37 -0800)
committerChris Aniszczyk <caniszczyk@gmail.com>
Tue, 1 Feb 2011 15:01:58 +0000 (09:01 -0600)
The first 'Compressing objects' progress message is wrong, its
actually PackWriter looking up the sizes of each object in the
ObjectDatabase, so objects can be sorted correctly in the later
type-size sort that tries to take advantage of "Linus' Law" to
improve delta compression.

Rename the progress to say 'Getting sizes', which is an accurate
description of what it is doing.

Change-Id: Ida0a052ad2f6e994996189ca12959caab9e556a3
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java

index 2f480194a7381734dfe199df42a78f26d6abb27c..9b1cb0c919994c9669836b6b638b86269743e66d 100644 (file)
@@ -380,6 +380,7 @@ resettingHead=Resetting head to {0}
 resultLengthIncorrect=result length incorrect
 rewinding=Rewinding to commit {0}
 searchForReuse=Finding sources
+searchForSizes=Getting sizes
 sequenceTooLargeForDiffAlgorithm=Sequence too large for difference algorithm.
 serviceNotPermitted={0} not permitted
 shortCompressedStreamAt=Short compressed stream at {0}
index 71fa26de4899f6bda5b0304c88b8e7b68ff7252f..bd63a42db55426e4f68ee64c61369a5905d98909 100644 (file)
@@ -440,6 +440,7 @@ public class JGitText extends TranslationBundle {
        /***/ public String resultLengthIncorrect;
        /***/ public String rewinding;
        /***/ public String searchForReuse;
+       /***/ public String searchForSizes;
        /***/ public String sequenceTooLargeForDiffAlgorithm;
        /***/ public String serviceNotPermitted;
        /***/ public String shortCompressedStreamAt;
index 9a586683af935733f8db41d9ed72cd0b732a7804..fb15a5c59d0b405b400c66982d80a1f5d745750f 100644 (file)
@@ -557,7 +557,7 @@ public class PackWriter {
                // search code to discover the missing object and skip over it, or
                // abort with an exception if we actually had to have it.
                //
-               monitor.beginTask(JGitText.get().compressingObjects, cnt);
+               monitor.beginTask(JGitText.get().searchForSizes, cnt);
                AsyncObjectSizeQueue<ObjectToPack> sizeQueue = reader.getObjectSize(
                                Arrays.<ObjectToPack> asList(list).subList(0, cnt), false);
                try {