diff src/org/tmatesoft/hg/repo/HgRepository.java @ 337:f377f833b780

Issue 17: temporary code to nail down the problem
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 15 Nov 2011 03:07:28 +0100
parents 3d41dc148d14
children a0864b2892cd
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgRepository.java	Fri Nov 11 05:56:09 2011 +0100
+++ b/src/org/tmatesoft/hg/repo/HgRepository.java	Tue Nov 15 03:07:28 2011 +0100
@@ -303,6 +303,11 @@
 	/*package-local*/ File getRepositoryRoot() {
 		return repoDir;
 	}
+	
+	// FIXME remove once NPE in HgWorkingCopyStatusCollector.areTheSame is solved
+	/*package-local, debug*/String getStoragePath(HgDataFile df) {
+		return dataPathHelper.rewrite(df.getPath().toString()).toString();
+	}
 
 	// XXX package-local, unless there are cases when required from outside (guess, working dir/revision walkers may hide dirstate access and no public visibility needed)
 	// XXX consider passing Path pool or factory to produce (shared) Path instead of Strings