Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/Internals.java @ 504:bf352ce2b97f
Allow to override lock timeout from within Hg4J
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 21:58:00 +0100 |
parents | d2f6ab541330 |
children | 0be5be8d57e9 |
comparison
equal
deleted
inserted
replaced
503:0bd2d0441d8f | 504:bf352ce2b97f |
---|---|
71 * and if your project happen to use anything but filesystem default (say, UTF8 on cp1251 system), | 71 * and if your project happen to use anything but filesystem default (say, UTF8 on cp1251 system), |
72 * native storage paths won't match | 72 * native storage paths won't match |
73 */ | 73 */ |
74 public static final String CFG_PROPERTY_FS_FILENAME_ENCODING = "hg.fs.filename.encoding"; | 74 public static final String CFG_PROPERTY_FS_FILENAME_ENCODING = "hg.fs.filename.encoding"; |
75 | 75 |
76 /** | |
77 * Timeout, in seconds, to acquire filesystem {@link HgRepositoryLock lock}. | |
78 * | |
79 * Mercurial provides 'ui.timeout' in hgrc (defaults to 600 seconds) to specify how long | |
80 * it shall try to acquire a lock for storage or working directory prior to fail. | |
81 * | |
82 * This configuration property allows to override timeout value from Mercurial's configuration | |
83 * file and use Hg4J-specific value instead. | |
84 * | |
85 * Integer value, use negative for attempts to acquire lock until success, and zero to try once and fail immediately. | |
86 */ | |
87 public static final String CFG_PROPERTY_FS_LOCK_TIMEOUT = "hg4j.fs.lock.timeout"; | |
88 | |
76 private List<Filter.Factory> filterFactories; | 89 private List<Filter.Factory> filterFactories; |
77 private final HgRepository repo; | 90 private final HgRepository repo; |
78 private final File repoDir; | 91 private final File repoDir; |
79 private final boolean isCaseSensitiveFileSystem; | 92 private final boolean isCaseSensitiveFileSystem; |
80 private final boolean shallCacheRevlogsInRepo; | 93 private final boolean shallCacheRevlogsInRepo; |