comparison src/com/tmate/hgkit/ll/LocalHgRepo.java @ 15:865bf07f381f

Basic hgignore handling
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 27 Dec 2010 00:50:02 +0100
parents 382cfe9463db
children 02ee376bee79
comparison
equal deleted inserted replaced
14:442dc6ee647b 15:865bf07f381f
48 public final HgDirstate loadDirstate() { 48 public final HgDirstate loadDirstate() {
49 // XXX may cache in SoftReference if creation is expensive 49 // XXX may cache in SoftReference if creation is expensive
50 return new HgDirstate(this, new File(repoDir, "dirstate")); 50 return new HgDirstate(this, new File(repoDir, "dirstate"));
51 } 51 }
52 52
53 // package-local, see comment for loadDirstate
54 public final HgIgnore loadIgnore() {
55 return new HgIgnore(this);
56 }
57
53 /*package-local*/ DataAccessProvider getDataAccess() { 58 /*package-local*/ DataAccessProvider getDataAccess() {
54 return dataAccess; 59 return dataAccess;
60 }
61
62 /*package-local*/ File getRepositoryRoot() {
63 return repoDir;
55 } 64 }
56 65
57 private final HashMap<String, SoftReference<RevlogStream>> streamsCache = new HashMap<String, SoftReference<RevlogStream>>(); 66 private final HashMap<String, SoftReference<RevlogStream>> streamsCache = new HashMap<String, SoftReference<RevlogStream>>();
58 67
59 /** 68 /**