equal
deleted
inserted
replaced
1346 except: # re-raises |
1346 except: # re-raises |
1347 other.close() |
1347 other.close() |
1348 raise |
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 def outgoing(ui, repo, dest, opts): |
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 limit = logcmdutil.getlimit(opts) |
1363 limit = logcmdutil.getlimit(opts) |
1362 o, other = _outgoing(ui, repo, dest, opts) |
1364 o, other = _outgoing(ui, repo, dest, opts) |
1363 ret = 1 |
1365 ret = 1 |
1364 try: |
1366 try: |
1378 continue |
1380 continue |
1379 count += 1 |
1381 count += 1 |
1380 displayer.show(repo[n]) |
1382 displayer.show(repo[n]) |
1381 displayer.close() |
1383 displayer.close() |
1382 cmdutil.outgoinghooks(ui, repo, other, opts, o) |
1384 cmdutil.outgoinghooks(ui, repo, other, opts, o) |
1383 ret = min(ret, recurse()) |
1385 ret = min(ret, _outgoing_recurse(ui, repo, dest, opts)) |
1384 return ret # exit code is zero since we found outgoing changes |
1386 return ret # exit code is zero since we found outgoing changes |
1385 finally: |
1387 finally: |
1386 other.close() |
1388 other.close() |
1387 |
1389 |
1388 |
1390 |