comparison src/org/tmatesoft/hg/repo/ext/MqManager.java @ 490:b3c16d1aede0

Refactoring: move HgRepository's implementation aspects to Internals (which is now its imlementation counterpart and primary repository class to be used by other parts of the library)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 16 Aug 2012 17:08:34 +0200
parents f3fab7a20841
children ba36f66c32b4
comparison
equal deleted inserted replaced
489:9c0138cda59a 490:b3c16d1aede0
62 */ 62 */
63 public void refresh() throws HgInvalidControlFileException { 63 public void refresh() throws HgInvalidControlFileException {
64 applied = allKnown = Collections.emptyList(); 64 applied = allKnown = Collections.emptyList();
65 queueNames = Collections.emptyList(); 65 queueNames = Collections.emptyList();
66 File repoDir = HgInternals.getRepositoryDir(repo); 66 File repoDir = HgInternals.getRepositoryDir(repo);
67 final LogFacility log = HgInternals.getContext(repo).getLog(); 67 final LogFacility log = repo.getSessionContext().getLog();
68 try { 68 try {
69 File queues = new File(repoDir, "patches.queues"); 69 File queues = new File(repoDir, "patches.queues");
70 if (queues.isFile()) { 70 if (queues.isFile()) {
71 LineReader lr = new LineReader(queues, log).trimLines(true).skipEmpty(true); 71 LineReader lr = new LineReader(queues, log).trimLines(true).skipEmpty(true);
72 lr.read(new LineReader.SimpleLineCollector(), queueNames = new LinkedList<String>()); 72 lr.read(new LineReader.SimpleLineCollector(), queueNames = new LinkedList<String>());