Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/Main.java @ 464:1a3c18d57a8e smartgit3
MqManager evolution: same PatchRecord instances, list patch queues, detect active queue
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 21 Jun 2012 20:27:58 +0200 |
parents | a0507a9f3da0 |
children | 7bcfbc255f48 |
comparison
equal
deleted
inserted
replaced
463:a0507a9f3da0 | 464:1a3c18d57a8e |
---|---|
137 i = 1; | 137 i = 1; |
138 System.out.println("Patches from the queue already applied to the repo:"); | 138 System.out.println("Patches from the queue already applied to the repo:"); |
139 for (PatchRecord pr : mqManager.getAppliedPatches()) { | 139 for (PatchRecord pr : mqManager.getAppliedPatches()) { |
140 System.out.printf("#%-3d %s, known as cset:%s\n", i++, pr.getName(), pr.getRevision().shortNotation()); | 140 System.out.printf("#%-3d %s, known as cset:%s\n", i++, pr.getName(), pr.getRevision().shortNotation()); |
141 } | 141 } |
142 boolean allAppliedAreKnown = mqManager.getAllKnownPatches().containsAll(mqManager.getAppliedPatches()); | |
143 System.out.printf("[sanity] allAppliedAreKnown:%b, not yet applied:%d\n", allAppliedAreKnown, mqManager.getQueueSize()); | |
144 Assert.assertTrue(allAppliedAreKnown); | |
145 | |
146 System.out.printf("Queues: %s, active:%s\n", mqManager.getQueueNames(), mqManager.getActiveQueueName()); | |
147 Assert.assertTrue(mqManager.getQueueNames().size() > 1); | |
148 Assert.assertTrue(mqManager.getActiveQueueName().length() > 0); | |
142 } | 149 } |
143 | 150 |
144 | 151 |
145 // -R {junit-test-repos}/branches-1 | 152 // -R {junit-test-repos}/branches-1 |
146 private void testRevisionDescendants() throws Exception { | 153 private void testRevisionDescendants() throws Exception { |