comparison src/org/tmatesoft/hg/repo/HgRepositoryLock.java @ 613:f41dd9a3b8af v1.1m4

Remove few Experimental annotations as the API they've marked graduates
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 10 May 2013 17:31:27 +0200
parents c56edf42be64
children 868b2ffdcd5c
comparison
equal deleted inserted replaced
612:dca70c0b1f74 613:f41dd9a3b8af
24 import java.net.InetAddress; 24 import java.net.InetAddress;
25 import java.nio.ByteBuffer; 25 import java.nio.ByteBuffer;
26 import java.nio.channels.FileChannel; 26 import java.nio.channels.FileChannel;
27 27
28 import org.tmatesoft.hg.core.HgRepositoryLockException; 28 import org.tmatesoft.hg.core.HgRepositoryLockException;
29 import org.tmatesoft.hg.internal.Experimental;
30 import org.tmatesoft.hg.internal.Internals; 29 import org.tmatesoft.hg.internal.Internals;
31 30
32 /** 31 /**
33 * NOT SAFE FOR MULTITHREAD USE!
34 *
35 * <p>Usage: 32 * <p>Usage:
36 * <pre> 33 * <pre>
37 * HgRepositoryLock lock = hgRepo.getWorkingDirLock(); 34 * HgRepositoryLock lock = hgRepo.getWorkingDirLock();
38 * try { 35 * try {
39 * // Actually lock the repo 36 * // Actually lock the repo
50 * 47 *
51 * </pre> 48 * </pre>
52 * 49 *
53 * Unlike original mechanism, we don't use symlinks, rather files, as it's easier to implement 50 * Unlike original mechanism, we don't use symlinks, rather files, as it's easier to implement
54 * 51 *
52 * <p>
53 * NOT SAFE FOR MULTITHREAD USE!
54 *
55 * @see http://code.google.com/p/hg4j/issues/detail?id=35 55 * @see http://code.google.com/p/hg4j/issues/detail?id=35
56 * @author Artem Tikhomirov 56 * @author Artem Tikhomirov
57 * @author TMate Software Ltd. 57 * @author TMate Software Ltd.
58 */ 58 */
59 @Experimental(reason="Work in progress")
60 public class HgRepositoryLock { 59 public class HgRepositoryLock {
61 /* 60 /*
62 * Lock .hg/ except .hg/store/ .hg/wlock (new File(hgRepo.getRepoRoot(),"wlock")) 61 * Lock .hg/ except .hg/store/ .hg/wlock (new File(hgRepo.getRepoRoot(),"wlock"))
63 * Lock .hg/store/ .hg/store/lock (HgRepository.repoPathHelper("lock")) 62 * Lock .hg/store/ .hg/store/lock (HgRepository.repoPathHelper("lock"))
64 */ 63 */