Browse Source

FS_POSIX: Externalize log message

Change-Id: Ida538e05c4595fdce99f1fa87469a3be60160adb
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.4
David Pursehouse 6 years ago
parent
commit
6305869bf1
  1. 1
      org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
  2. 1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
  3. 5
      org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java

1
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties

@ -735,6 +735,7 @@ unexpectedEndOfConfigFile=Unexpected end of config file
unexpectedEndOfInput=Unexpected end of input unexpectedEndOfInput=Unexpected end of input
unexpectedEofInPack=Unexpected EOF in partially created pack unexpectedEofInPack=Unexpected EOF in partially created pack
unexpectedHunkTrailer=Unexpected hunk trailer unexpectedHunkTrailer=Unexpected hunk trailer
unexpectedNlinkValue=nlink of link to lock file {0} was not 2 but {1}
unexpectedOddResult=odd: {0} + {1} - {2} unexpectedOddResult=odd: {0} + {1} - {2}
unexpectedPacketLine=unexpected {0} unexpectedPacketLine=unexpected {0}
unexpectedRefReport={0}: unexpected ref report: {1} unexpectedRefReport={0}: unexpected ref report: {1}

1
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java

@ -795,6 +795,7 @@ public class JGitText extends TranslationBundle {
/***/ public String unexpectedEndOfInput; /***/ public String unexpectedEndOfInput;
/***/ public String unexpectedEofInPack; /***/ public String unexpectedEofInPack;
/***/ public String unexpectedHunkTrailer; /***/ public String unexpectedHunkTrailer;
/***/ public String unexpectedNlinkValue;
/***/ public String unexpectedOddResult; /***/ public String unexpectedOddResult;
/***/ public String unexpectedPacketLine; /***/ public String unexpectedPacketLine;
/***/ public String unexpectedRefReport; /***/ public String unexpectedRefReport;

5
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java

@ -400,8 +400,9 @@ public class FS_POSIX extends FS {
Integer nlink = (Integer) (Files.getAttribute(lockPath, Integer nlink = (Integer) (Files.getAttribute(lockPath,
"unix:nlink")); //$NON-NLS-1$ "unix:nlink")); //$NON-NLS-1$
if (nlink > 2) { if (nlink > 2) {
LOG.warn("nlink of link to lock file {} was not 2 but {}", //$NON-NLS-1$ LOG.warn(MessageFormat.format(
lock.getPath(), nlink); JGitText.get().unexpectedNlinkValue, lock.getPath(),
nlink));
return false; return false;
} else if (nlink < 2) { } else if (nlink < 2) {
supportsUnixNLink = false; supportsUnixNLink = false;

Loading…
Cancel
Save