Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java @ 195:c9b305df0b89
Optimization: use ParentWalker to get changeset's parents, if possible. Do not keep duplicating nodeids and strings in manifest revisions
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 15 Apr 2011 05:17:44 +0200 |
parents | 42fe9a94b9d0 |
children | 047b1dec7a04 |
comparison
equal
deleted
inserted
replaced
194:344e8d7e4d6e | 195:c9b305df0b89 |
---|---|
111 Set<String> baseRevFiles = Collections.emptySet(); | 111 Set<String> baseRevFiles = Collections.emptySet(); |
112 if (!isTipBase) { | 112 if (!isTipBase) { |
113 if (baseRevisionCollector != null) { | 113 if (baseRevisionCollector != null) { |
114 collect = baseRevisionCollector.raw(baseRevision); | 114 collect = baseRevisionCollector.raw(baseRevision); |
115 } else { | 115 } else { |
116 collect = new HgStatusCollector.ManifestRevisionInspector(); | 116 collect = new HgStatusCollector.ManifestRevisionInspector(null, null); |
117 repo.getManifest().walk(baseRevision, baseRevision, collect); | 117 repo.getManifest().walk(baseRevision, baseRevision, collect); |
118 } | 118 } |
119 baseRevFiles = new TreeSet<String>(collect.files()); | 119 baseRevFiles = new TreeSet<String>(collect.files()); |
120 } | 120 } |
121 if (inspector instanceof HgStatusCollector.Record) { | 121 if (inspector instanceof HgStatusCollector.Record) { |