Changeset 868ccf195869…
Parent 99d48b85041d…
by
Changes to one file · Browse files at 868ccf195869 Showing diff from parent 99d48b85041d Diff from another changeset...
@@ -752,9 +752,14 @@ urlu = hglib.tounicode(url)
self.showMessage.emit(_('Finding outgoing changesets to %s...') % urlu)
if self.embedded and not self.opts.get('subrepos'):
+ def verifyhash(hash):
+ if len(hash) != 40:
+ return False
+ bad = [c for c in hash if c not in '0123456789abcdef']
+ return not bad
def outputnodes(ret, data):
if ret == 0:
- nodes = [n for n in data.splitlines() if len(n) == 40]
+ nodes = [n for n in data.splitlines() if verifyhash(n)]
if nodes:
self.outgoingNodes.emit(nodes)
self.showMessage.emit(_('%d outgoing changesets to %s') %
|
Loading...