comparison src/org/tmatesoft/hg/repo/HgStatusCollector.java @ 284:7232b94f2ae3

HgDirstate shall operate with Path instead of String for file names. Use of Pair instead of array of unspecified length for parents.
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sat, 03 Sep 2011 13:12:13 +0200
parents e51dd9a14b6f
children 6dbbc53fc46d
comparison
equal deleted inserted replaced
283:7a8e1a305a78 284:7232b94f2ae3
63 this.repo = hgRepo; 63 this.repo = hgRepo;
64 cache = new IntMap<ManifestRevision>(cacheMaxSize); 64 cache = new IntMap<ManifestRevision>(cacheMaxSize);
65 cacheNodes = new Pool<Nodeid>(); 65 cacheNodes = new Pool<Nodeid>();
66 cacheFilenames = new Pool<String>(); 66 cacheFilenames = new Pool<String>();
67 67
68 emptyFakeState = new ManifestRevision(null, null); 68 emptyFakeState = createEmptyManifestRevision();
69 emptyFakeState.begin(-1, null, -1);
70 emptyFakeState.end(-1);
71 } 69 }
72 70
73 public HgRepository getRepo() { 71 public HgRepository getRepo() {
74 return repo; 72 return repo;
75 } 73 }
133 cacheHit = false; 131 cacheHit = false;
134 delegate = null; 132 delegate = null;
135 return true; 133 return true;
136 } 134 }
137 }); 135 });
136 }
137
138 /*package-local*/ static ManifestRevision createEmptyManifestRevision() {
139 ManifestRevision fakeEmptyRev = new ManifestRevision(null, null);
140 fakeEmptyRev.begin(-1, null, -1);
141 fakeEmptyRev.end(-1);
142 return fakeEmptyRev;
138 } 143 }
139 144
140 /*package-local*/ ManifestRevision raw(int rev) { 145 /*package-local*/ ManifestRevision raw(int rev) {
141 return get(rev); 146 return get(rev);
142 } 147 }