Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/Internals.java @ 713:661e77dc88ba tip
Mac support: respect Mac alternatives of command-line arguments for common unix tools
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sun, 03 Aug 2014 18:09:00 +0200 |
parents | a62079bc422b |
children |
comparison
equal
deleted
inserted
replaced
712:a864fb309e4b | 713:661e77dc88ba |
---|---|
304 } | 304 } |
305 | 305 |
306 public static boolean runningOnWindows() { | 306 public static boolean runningOnWindows() { |
307 return System.getProperty("os.name").indexOf("Windows") != -1; | 307 return System.getProperty("os.name").indexOf("Windows") != -1; |
308 } | 308 } |
309 public static boolean runningOnMac() { | |
310 return System.getProperty("os.name").indexOf("Mac") != -1; | |
311 } | |
309 | 312 |
310 /** | 313 /** |
311 * @param fsHint optional hint pointing to filesystem of interest (generally, it's possible to mount | 314 * @param fsHint optional hint pointing to filesystem of interest (generally, it's possible to mount |
312 * filesystems with different capabilities and repository's capabilities would depend on which fs it resides) | 315 * filesystems with different capabilities and repository's capabilities would depend on which fs it resides) |
313 * @return <code>true</code> if executable files deserve tailored handling | 316 * @return <code>true</code> if executable files deserve tailored handling |