comparison src/org/tmatesoft/hg/repo/HgRepositoryLock.java @ 488:45b3b6ca046f

Repository locking mechanism is alive
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 13 Aug 2012 19:07:59 +0200
parents db48a77ec8ff
children 9c0138cda59a
comparison
equal deleted inserted replaced
487:db48a77ec8ff 488:45b3b6ca046f
35 * @author Artem Tikhomirov 35 * @author Artem Tikhomirov
36 * @author TMate Software Ltd. 36 * @author TMate Software Ltd.
37 */ 37 */
38 public class HgRepositoryLock { 38 public class HgRepositoryLock {
39 /* 39 /*
40 * Lock .hg/ except .hg/store/ .hg/wlock (HgRepository.repoPathHelper("wlock")) 40 * Lock .hg/ except .hg/store/ .hg/wlock (new File(hgRepo.getRepoRoot(),"wlock"))
41 * Lock .hg/store/ .hg/store/lock (HgRepository.repoPathHelper("store/lock") ???) 41 * Lock .hg/store/ .hg/store/lock (HgRepository.repoPathHelper("lock"))
42 */ 42 */
43 43
44 private final File lockFile; 44 private final File lockFile;
45 private int use = 0; 45 private int use = 0;
46 private final int timeoutSeconds; 46 private final int timeoutSeconds;