Commits

ZyX_I committed f53b1b6

@aurum/drivers/mercurial: Sometimes last lines of output are displayed only when
next command is run. Run repo.ui.flush() after each
outer method and see whether this will fix the issue.

Comments (0)

Files changed (1)

     def f(path, *args, **kwargs):
         try:
             repo=g_repo(path)
-            func(repo, *args, **kwargs)
+            try:
+                func(repo, *args, **kwargs)
+            finally:
+                repo.ui.flush()
         except AurumError:
             pass
         except vim.error:
     if not hasattr(repo, '__getitem__'):
         vim_throw('upduns', repo.path)
     rev=g_cs(repo, rev).hex()
-    args=[PrintUI(), repo, rev]
+    args=[repo.ui, repo, rev]
     kwargs={'clean': bool(force)}
     run_in_dir(repo.root, commands.update, *args, **kwargs)