comparison src/org/tmatesoft/hg/repo/HgInternals.java @ 96:ace7042a5ce6

Internals to HgInternals
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 27 Jan 2011 21:24:37 +0100
parents src/org/tmatesoft/hg/repo/Internals.java@c2ce1cfaeb9e
children a3a2e5deb320
comparison
equal deleted inserted replaced
95:bcd31a4c638a 96:ace7042a5ce6
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 HgInternals {
30
31 private final HgRepository repo;
32
33 public HgInternals(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.getIgnore();
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 }