comparison src/org/tmatesoft/hg/core/HgLogCommand.java @ 322:d68dcb3b5f49

Propagate command's CancelSupport to low-level API. CancelSupport from context got priority over one from command
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 30 Sep 2011 08:00:04 +0200
parents ee6b467c1a5f
children a674b8590362
comparison
equal deleted inserted replaced
321:ac38e75c9e8e 322:d68dcb3b5f49
209 if (file == null) { 209 if (file == null) {
210 pw = getParentHelper(); 210 pw = getParentHelper();
211 } 211 }
212 // ChangesetTransfrom creates a blank PathPool, and #file(String, boolean) above 212 // ChangesetTransfrom creates a blank PathPool, and #file(String, boolean) above
213 // may utilize it as well. CommandContext? How about StatusCollector there as well? 213 // may utilize it as well. CommandContext? How about StatusCollector there as well?
214 csetTransform = new ChangesetTransformer(repo, handler, pw, progressHelper, getCancelSupport(handler)); 214 csetTransform = new ChangesetTransformer(repo, handler, pw, progressHelper, getCancelSupport(handler, true));
215 if (file == null) { 215 if (file == null) {
216 progressHelper.start(endRev - startRev + 1); 216 progressHelper.start(endRev - startRev + 1);
217 repo.getChangelog().range(startRev, endRev, this); 217 repo.getChangelog().range(startRev, endRev, this);
218 csetTransform.checkFailure(); 218 csetTransform.checkFailure();
219 } else { 219 } else {