comparison src/org/tmatesoft/hg/repo/Internals.java @ 74:6f1b88693d48

Complete refactoring to org.tmatesoft
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 24 Jan 2011 03:14:45 +0100
parents src/com/tmate/hgkit/ll/Internals.java@b771e94a4f7c
children c2ce1cfaeb9e
comparison
equal deleted inserted replaced
73:0d279bcc4442 74:6f1b88693d48
1 /*
2 * Copyright (c) 2011 TMate Software Ltd
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * For information on how to redistribute this software under
14 * the terms of a license other than GNU General Public License
15 * contact TMate Software at support@svnkit.com
16 */
17 package org.tmatesoft.hg.repo;
18
19
20 /**
21 * DO NOT USE THIS CLASS, INTENDED FOR TESTING PURPOSES.
22 *
23 * Debug helper, to access otherwise restricted (package-local) methods
24 *
25 * @author Artem Tikhomirov
26 * @author TMate Software Ltd.
27
28 */
29 public class Internals {
30
31 private final HgRepository repo;
32
33 public Internals(HgRepository hgRepo) {
34 repo = hgRepo;
35 }
36
37 public void dumpDirstate() {
38 repo.loadDirstate().dump();
39 }
40
41 public boolean[] checkIgnored(String... toCheck) {
42 HgIgnore ignore = repo.loadIgnore();
43 boolean[] rv = new boolean[toCheck.length];
44 for (int i = 0; i < toCheck.length; i++) {
45 rv[i] = ignore.isIgnored(toCheck[i]);
46 }
47 return rv;
48 }
49 }