Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgDirstate.java @ 93:d55d4eedfc57
Switch to Path instead of String in filenames returned by various status operations
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 27 Jan 2011 21:15:21 +0100 |
parents | 6f1b88693d48 |
children | a3a2e5deb320 |
comparison
equal
deleted
inserted
replaced
92:bf304cb14247 | 93:d55d4eedfc57 |
---|---|
32 * @see http://mercurial.selenic.com/wiki/FileFormats#dirstate | 32 * @see http://mercurial.selenic.com/wiki/FileFormats#dirstate |
33 * | 33 * |
34 * @author Artem Tikhomirov | 34 * @author Artem Tikhomirov |
35 * @author TMate Software Ltd. | 35 * @author TMate Software Ltd. |
36 */ | 36 */ |
37 public class HgDirstate { | 37 class HgDirstate { |
38 | 38 |
39 private final DataAccessProvider accessProvider; | 39 private final DataAccessProvider accessProvider; |
40 private final File dirstateFile; | 40 private final File dirstateFile; |
41 private Map<String, Record> normal; | 41 private Map<String, Record> normal; |
42 private Map<String, Record> added; | 42 private Map<String, Record> added; |
141 } | 141 } |
142 | 142 |
143 | 143 |
144 | 144 |
145 | 145 |
146 public void dump() { | 146 /*package-local*/ void dump() { |
147 read(); | 147 read(); |
148 @SuppressWarnings("unchecked") | 148 @SuppressWarnings("unchecked") |
149 Map<String, Record>[] all = new Map[] { normal, added, removed, merged }; | 149 Map<String, Record>[] all = new Map[] { normal, added, removed, merged }; |
150 char[] x = new char[] {'n', 'a', 'r', 'm' }; | 150 char[] x = new char[] {'n', 'a', 'r', 'm' }; |
151 for (int i = 0; i < all.length; i++) { | 151 for (int i = 0; i < all.length; i++) { |