Show More
@@ -1348,15 +1348,17 b' def _outgoing(ui, repo, dest, opts):' | |||
|
1348 | 1348 | raise |
|
1349 | 1349 | |
|
1350 | 1350 | |
|
1351 | def _outgoing_recurse(ui, repo, dest, opts): | |
|
1352 | ret = 1 | |
|
1353 | if opts.get(b'subrepos'): | |
|
1354 | ctx = repo[None] | |
|
1355 | for subpath in sorted(ctx.substate): | |
|
1356 | sub = ctx.sub(subpath) | |
|
1357 | ret = min(ret, sub.outgoing(ui, dest, opts)) | |
|
1358 | return ret | |
|
1359 | ||
|
1360 | ||
|
1351 | 1361 | def outgoing(ui, repo, dest, opts): |
|
1352 | def recurse(): | |
|
1353 | ret = 1 | |
|
1354 | if opts.get(b'subrepos'): | |
|
1355 | ctx = repo[None] | |
|
1356 | for subpath in sorted(ctx.substate): | |
|
1357 | sub = ctx.sub(subpath) | |
|
1358 | ret = min(ret, sub.outgoing(ui, dest, opts)) | |
|
1359 | return ret | |
|
1360 | 1362 | |
|
1361 | 1363 | limit = logcmdutil.getlimit(opts) |
|
1362 | 1364 | o, other = _outgoing(ui, repo, dest, opts) |
@@ -1380,7 +1382,7 b' def outgoing(ui, repo, dest, opts):' | |||
|
1380 | 1382 | displayer.show(repo[n]) |
|
1381 | 1383 | displayer.close() |
|
1382 | 1384 | cmdutil.outgoinghooks(ui, repo, other, opts, o) |
|
1383 | ret = min(ret, recurse()) | |
|
1385 | ret = min(ret, _outgoing_recurse(ui, repo, dest, opts)) | |
|
1384 | 1386 | return ret # exit code is zero since we found outgoing changes |
|
1385 | 1387 | finally: |
|
1386 | 1388 | other.close() |
General Comments 0
You need to be logged in to leave comments.
Login now