Mercurial > jhg
comparison src/com/tmate/hgkit/console/Status.java @ 59:b771e94a4f7c
Introduce Internals to keep LocalHgRepo casts and alike in a single place. WCSC optionally to reuse SC data
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Tue, 18 Jan 2011 00:08:15 +0100 |
| parents | 4cfc47bc14cc |
| children |
comparison
equal
deleted
inserted
replaced
| 58:4cfc47bc14cc | 59:b771e94a4f7c |
|---|---|
| 10 import java.util.List; | 10 import java.util.List; |
| 11 | 11 |
| 12 import com.tmate.hgkit.fs.RepositoryLookup; | 12 import com.tmate.hgkit.fs.RepositoryLookup; |
| 13 import com.tmate.hgkit.ll.HgDataFile; | 13 import com.tmate.hgkit.ll.HgDataFile; |
| 14 import com.tmate.hgkit.ll.HgRepository; | 14 import com.tmate.hgkit.ll.HgRepository; |
| 15 import com.tmate.hgkit.ll.Internals; | |
| 15 import com.tmate.hgkit.ll.LocalHgRepo; | 16 import com.tmate.hgkit.ll.LocalHgRepo; |
| 16 import com.tmate.hgkit.ll.Nodeid; | 17 import com.tmate.hgkit.ll.Nodeid; |
| 17 import com.tmate.hgkit.ll.StatusCollector; | 18 import com.tmate.hgkit.ll.StatusCollector; |
| 18 import com.tmate.hgkit.ll.WorkingCopyStatusCollector; | 19 import com.tmate.hgkit.ll.WorkingCopyStatusCollector; |
| 19 | 20 |
| 30 if (hgRepo.isInvalid()) { | 31 if (hgRepo.isInvalid()) { |
| 31 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); | 32 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); |
| 32 return; | 33 return; |
| 33 } | 34 } |
| 34 System.out.println(hgRepo.getLocation()); | 35 System.out.println(hgRepo.getLocation()); |
| 35 ((LocalHgRepo) hgRepo).loadDirstate().dump(); | 36 Internals debug = new Internals(hgRepo); |
| 37 debug.dumpDirstate(); | |
| 36 final StatusDump dump = new StatusDump(); | 38 final StatusDump dump = new StatusDump(); |
| 37 dump.showIgnored = false; | 39 dump.showIgnored = false; |
| 38 dump.showClean = false; | 40 dump.showClean = false; |
| 39 StatusCollector sc = new StatusCollector(hgRepo); | 41 StatusCollector sc = new StatusCollector(hgRepo); |
| 40 final int r1 = 0, r2 = 3; | 42 final int r1 = 0, r2 = 3; |
