diff src/org/tmatesoft/hg/repo/HgRepository.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 5c68567b3645
children 272ecffccc8a
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgRepository.java	Fri May 10 14:29:35 2013 +0200
+++ b/src/org/tmatesoft/hg/repo/HgRepository.java	Fri May 10 17:31:27 2013 +0200
@@ -31,7 +31,6 @@
 import org.tmatesoft.hg.core.SessionContext;
 import org.tmatesoft.hg.internal.ConfigFile;
 import org.tmatesoft.hg.internal.DirstateReader;
-import org.tmatesoft.hg.internal.Experimental;
 import org.tmatesoft.hg.internal.Filter;
 import org.tmatesoft.hg.internal.Internals;
 import org.tmatesoft.hg.internal.PropertyMarshal;
@@ -110,6 +109,8 @@
 	private HgIgnore ignore;
 	private HgRepoConfig repoConfig;
 	
+	private HgRepositoryLock wdLock, storeLock;
+
 	private final org.tmatesoft.hg.internal.Internals impl;
 	
 	/*
@@ -384,11 +385,7 @@
 		}
 	}
 
-	private HgRepositoryLock wdLock, storeLock;
-
 	/**
-	 * PROVISIONAL CODE, DO NOT USE
-	 * 
 	 * Access repository lock that covers non-store parts of the repository (dirstate, branches, etc - 
 	 * everything that has to do with working directory state).
 	 * 
@@ -397,7 +394,6 @@
 	 *   
 	 * @return lock object, never <code>null</code>
 	 */
-	@Experimental(reason="WORK IN PROGRESS")
 	public HgRepositoryLock getWorkingDirLock() {
 		if (wdLock == null) {
 			int timeout = getLockTimeout();
@@ -411,7 +407,11 @@
 		return wdLock;
 	}
 
-	@Experimental(reason="WORK IN PROGRESS")
+	/**
+	 * Access repository lock that covers repository intrinsic files, unrelated to 
+	 * the state of working directory
+	 * @return lock object, never <code>null</code>
+	 */
 	public HgRepositoryLock getStoreLock() {
 		if (storeLock == null) {
 			int timeout = getLockTimeout();