]> source.dussan.org Git - jgit.git/commitdiff
Move some strings from DfsText to JGitText 65/110865/2
authorDave Borowitz <dborowitz@google.com>
Wed, 1 Nov 2017 15:45:22 +0000 (11:45 -0400)
committerDave Borowitz <dborowitz@google.com>
Wed, 1 Nov 2017 16:41:38 +0000 (12:41 -0400)
Change-Id: I60050e5127d12b6139d81859dba929fcfaabe504

org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/resources/org/eclipse/jgit/internal/storage/dfs/DfsText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsText.java

index 43dd9482ded22bd773827b625d08b0b65282cc02..0b9a247791f66f4f0488c32cafad52f792a6219f 100644 (file)
@@ -88,6 +88,7 @@ cannotParseDate=The date specification "{0}" could not be parsed with the follow
 cannotParseGitURIish=Cannot parse Git URI-ish
 cannotPullOnARepoWithState=Cannot pull into a repository with state: {0}
 cannotRead=Cannot read {0}
+cannotReadBackDelta=Cannot read delta type {0}
 cannotReadBlob=Cannot read blob {0}
 cannotReadCommit=Cannot read commit {0}
 cannotReadFile=Cannot read file {0}
@@ -684,6 +685,7 @@ unencodeableFile=Unencodable file: {0}
 unexpectedCompareResult=Unexpected metadata comparison result: {0}
 unexpectedEndOfConfigFile=Unexpected end of config file
 unexpectedEndOfInput=Unexpected end of input
+unexpectedEofInPack=Unexpected EOF in partially created pack
 unexpectedHunkTrailer=Unexpected hunk trailer
 unexpectedOddResult=odd: {0} + {1} - {2}
 unexpectedRefReport={0}: unexpected ref report: {1}
index 4bbc4cc71a97b2102ac85492f3a41e3b367a4d7d..2c4bd06a339e5d6b6f63d1078cf502cb720889c5 100644 (file)
@@ -1,6 +1,4 @@
 cannotReadIndex=Cannot read index {0}
-cannotReadBackDelta=Cannot read delta type {0}
 shortReadOfBlock=Short read of block at {0} in pack {1}; expected {2} bytes, received only {3}
 shortReadOfIndex=Short read of index {0}
-unexpectedEofInPack=Unexpected EOF in partially created pack
 willNotStoreEmptyPack=Cannot store empty pack
index 6b3631601e667c8dc40ffdc2723387b88c50329f..4225dba09b27c105098bbe4ba81fbd94cd09df36 100644 (file)
@@ -147,6 +147,7 @@ public class JGitText extends TranslationBundle {
        /***/ public String cannotParseGitURIish;
        /***/ public String cannotPullOnARepoWithState;
        /***/ public String cannotRead;
+       /***/ public String cannotReadBackDelta;
        /***/ public String cannotReadBlob;
        /***/ public String cannotReadCommit;
        /***/ public String cannotReadFile;
@@ -743,6 +744,7 @@ public class JGitText extends TranslationBundle {
        /***/ public String unexpectedCompareResult;
        /***/ public String unexpectedEndOfConfigFile;
        /***/ public String unexpectedEndOfInput;
+       /***/ public String unexpectedEofInPack;
        /***/ public String unexpectedHunkTrailer;
        /***/ public String unexpectedOddResult;
        /***/ public String unexpectedRefReport;
index 01654d45dbece489645235ba5ac86a69a12ad3f2..19e86522c656f0a3df1d55dced7031463eee97fc 100644 (file)
@@ -500,7 +500,7 @@ public class DfsInserter extends ObjectInserter {
                                inf.setInput(currBuf, s, n);
                                return n;
                        }
-                       throw new EOFException(DfsText.get().unexpectedEofInPack);
+                       throw new EOFException(JGitText.get().unexpectedEofInPack);
                }
 
                private DfsBlock getOrLoadBlock(long pos) throws IOException {
@@ -513,7 +513,7 @@ public class DfsInserter extends ObjectInserter {
                        for (int p = 0; p < blockSize;) {
                                int n = out.read(s + p, ByteBuffer.wrap(d, p, blockSize - p));
                                if (n <= 0)
-                                       throw new EOFException(DfsText.get().unexpectedEofInPack);
+                                       throw new EOFException(JGitText.get().unexpectedEofInPack);
                                p += n;
                        }
                        b = new DfsBlock(packKey, s, d);
@@ -569,13 +569,13 @@ public class DfsInserter extends ObjectInserter {
                        byte[] buf = buffer();
                        int cnt = packOut.read(obj.getOffset(), buf, 0, 20);
                        if (cnt <= 0)
-                                       throw new EOFException(DfsText.get().unexpectedEofInPack);
+                                       throw new EOFException(JGitText.get().unexpectedEofInPack);
 
                        int c = buf[0] & 0xff;
                        int type = (c >> 4) & 7;
                        if (type == OBJ_OFS_DELTA || type == OBJ_REF_DELTA)
                                throw new IOException(MessageFormat.format(
-                                               DfsText.get().cannotReadBackDelta, Integer.toString(type)));
+                                               JGitText.get().cannotReadBackDelta, Integer.toString(type)));
                        if (typeHint != OBJ_ANY && type != typeHint) {
                                throw new IncorrectObjectTypeException(objectId.copy(), typeHint);
                        }
@@ -585,7 +585,7 @@ public class DfsInserter extends ObjectInserter {
                        int shift = 4;
                        while ((c & 0x80) != 0) {
                                if (ptr >= cnt)
-                                       throw new EOFException(DfsText.get().unexpectedEofInPack);
+                                       throw new EOFException(JGitText.get().unexpectedEofInPack);
                                c = buf[ptr++] & 0xff;
                                sz += ((long) (c & 0x7f)) << shift;
                                shift += 7;
index 862454759ed5e559ceac5d2aec8be66761a9f4ab..dedcab04d8445c390504622855b632f21b4d6618 100644 (file)
@@ -55,9 +55,7 @@ public class DfsText extends TranslationBundle {
 
        // @formatter:off
        /***/ public String cannotReadIndex;
-       /***/ public String cannotReadBackDelta;
        /***/ public String shortReadOfBlock;
        /***/ public String shortReadOfIndex;
-       /***/ public String unexpectedEofInPack;
        /***/ public String willNotStoreEmptyPack;
 }