##// END OF EJS Templates
outgoing: make `recurse` a real function...
marmoute -
r47675:b2740c54 default
parent child Browse files
Show More
@@ -1348,8 +1348,7 def _outgoing(ui, repo, dest, opts):
1348 1348 raise
1349 1349
1350 1350
1351 def outgoing(ui, repo, dest, opts):
1352 def recurse():
1351 def _outgoing_recurse(ui, repo, dest, opts):
1353 1352 ret = 1
1354 1353 if opts.get(b'subrepos'):
1355 1354 ctx = repo[None]
@@ -1358,6 +1357,9 def outgoing(ui, repo, dest, opts):
1358 1357 ret = min(ret, sub.outgoing(ui, dest, opts))
1359 1358 return ret
1360 1359
1360
1361 def outgoing(ui, repo, dest, opts):
1362
1361 1363 limit = logcmdutil.getlimit(opts)
1362 1364 o, other = _outgoing(ui, repo, dest, opts)
1363 1365 ret = 1
@@ -1380,7 +1382,7 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