Changeset 3167426739c0…
Parent 4037b8e6c0f1…
by
Changes to 4 files · Browse files at 3167426739c0 Showing diff from parent 4037b8e6c0f1 Diff from another changeset...
@@ -940,8 +940,9 @@ return
try:
q = Queue.Queue()
- hglib.hgcmd_toq(q, 'cat', '--rev',
- str(self.currev), '--output', hglib.fromutf(result), self.curfile)
+ hglib.hgcmd_toq(q, False, ('cat', '--rev',
+ str(self.currev), '--output', hglib.fromutf(result),
+ self.curfile))
except (util.Abort, IOError), e:
gdialog.Prompt(_('Unable to save file'), str(e), self).run()
|
@@ -461,7 +461,7 @@
def threadfunc(q, *args):
try:
- hglib.hgcmd_toq(q, *args, label=True)
+ hglib.hgcmd_toq(q, True, args)
except (util.Abort, error.LookupError), e:
self.stbar.set_text(_('Abort: %s') % str(e))
@@ -773,7 +773,7 @@ '''
def threadfunc(q, *args):
try:
- hglib.hgcmd_toq(q, *args)
+ hglib.hgcmd_toq(q, False, args)
except (util.Abort, error.LookupError), e:
self.stbar.set_text(_('Abort: %s') % str(e))
|
@@ -223,7 +223,7 @@ def _start_server(self):
def threadfunc(q, *args):
try:
- hglib.hgcmd_toq(q, *args)
+ hglib.hgcmd_toq(q, False, args)
except util.Abort, e:
self._write(_('Abort: %s\n') % str(e))
|
@@ -310,12 +310,11 @@ return tools
-def hgcmd_toq(q, *args, **opts):
+def hgcmd_toq(q, label, args):
'''
Run an hg command in a background thread, pipe all output to a Queue
object. Assumes command is completely noninteractive.
'''
- label = opts.get('label', False)
class Qui(ui.ui):
def __init__(self, src=None):
super(Qui, self).__init__(src)
|
Loading...