Changeset 3:296778dfdf6d for com.goldenhammers.merclipse/src/com/goldenhammers/merclipse/utils/MercurialUtils.java
Legend:
- Unmodified
- Added
- Removed
-
com.goldenhammers.merclipse/src/com/goldenhammers/merclipse/utils/MercurialUtils.java
r1 r3 447 447 throws MercurialException, MercurialNotFoundException, IOException, InterruptedException { 448 448 449 MercurialProcess mp = runAsync(command, workingDirectory, 450 new MercurialProgressOperationMonitor(monitor)); 451 452 while (mp.isRunning()) { 449 MercurialOperationMonitor opMonitor = new MercurialProgressOperationMonitor(monitor); 450 451 MercurialProcess mp = runAsync(command, workingDirectory, opMonitor); 452 453 while (!opMonitor.isFinished()) { 453 454 if (!display.readAndDispatch()) { 454 455 display.sleep(); … … 473 474 List<String> cmdList = getCommand(cmd, workingDir, path, args); 474 475 return runSync(cmdList, workingDir, monitor); 476 } 477 478 public static InputStream runSyncOnUIThread(Display display, String cmd, MercurialPath path, IProgressMonitor monitor, String... args) 479 throws MercurialException, MercurialNotFoundException, IOException, InterruptedException { 480 MercurialWorkingDir workingDir = getWorkingDirectory(path); 481 List<String> cmdList = getCommand(cmd, workingDir, path, args); 482 return runSyncOnUIThread(display, cmdList, workingDir, monitor); 475 483 } 476 484
