Show
Ignore:
Timestamp:
10/19/08 22:24:45 (4 years ago)
Author:
Whitney Sorenson <ws@…>
Branch:
default
Message:

0.8.7 - add support for log on repo, dont block ui thread on history

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com.goldenhammers.merclipse/src/com/goldenhammers/merclipse/utils/MercurialUtils.java

    r1 r3  
    447447                                throws MercurialException, MercurialNotFoundException, IOException, InterruptedException { 
    448448                 
    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()) { 
    453454                        if (!display.readAndDispatch()) { 
    454455                                display.sleep(); 
     
    473474                List<String> cmdList = getCommand(cmd, workingDir, path, args); 
    474475                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); 
    475483        } 
    476484