Commit 409cebac authored by Steve Borho's avatar Steve Borho
Browse files

sync: ignore outgoing output lines that do not look like hashes

parent 56b2c0483ea0
......@@ -655,7 +655,7 @@ class SyncWidget(QWidget):
if self.embedded:
def outputnodes(ret, data):
if ret == 0:
nodes = data.splitlines()
nodes = [n for n in data.splitlines() if len(n) == 40]
self.outgoingNodes.emit(nodes)
self.showMessage.emit(_('%d outgoing changesets') %
len(nodes))
......@@ -733,7 +733,7 @@ class SyncWidget(QWidget):
self.showMessage.emit(_('Determining outgoing changesets to email...'))
def outputnodes(ret, data):
if ret == 0:
nodes = data.splitlines()
nodes = [n for n in data.splitlines() if len(n) == 40]
self.showMessage.emit(_('%d outgoing changesets') %
len(nodes))
from tortoisehg.hgqt import run as _run
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment