Show More
@@ -1453,6 +1453,22 def _outgoing_recurse(ui, repo, dests, o | |||||
1453 | return ret |
|
1453 | return ret | |
1454 |
|
1454 | |||
1455 |
|
1455 | |||
|
1456 | def display_outgoing_revs(ui, repo, o, opts): | |||
|
1457 | if opts.get(b'graph'): | |||
|
1458 | revdag = logcmdutil.graphrevs(repo, o, opts) | |||
|
1459 | ui.pager(b'outgoing') | |||
|
1460 | displayer = logcmdutil.changesetdisplayer(ui, repo, opts, buffered=True) | |||
|
1461 | logcmdutil.displaygraph( | |||
|
1462 | ui, repo, revdag, displayer, graphmod.asciiedges | |||
|
1463 | ) | |||
|
1464 | else: | |||
|
1465 | ui.pager(b'outgoing') | |||
|
1466 | displayer = logcmdutil.changesetdisplayer(ui, repo, opts) | |||
|
1467 | for n in _outgoing_filter(repo, o, opts): | |||
|
1468 | displayer.show(repo[n]) | |||
|
1469 | displayer.close() | |||
|
1470 | ||||
|
1471 | ||||
1456 | def outgoing(ui, repo, dests, opts, subpath=None): |
|
1472 | def outgoing(ui, repo, dests, opts, subpath=None): | |
1457 | if opts.get(b'graph'): |
|
1473 | if opts.get(b'graph'): | |
1458 | logcmdutil.checkunsupportedgraphflags([], opts) |
|
1474 | logcmdutil.checkunsupportedgraphflags([], opts) | |
@@ -1461,22 +1477,7 def outgoing(ui, repo, dests, opts, subp | |||||
1461 | try: |
|
1477 | try: | |
1462 | if o: |
|
1478 | if o: | |
1463 | ret = 0 |
|
1479 | ret = 0 | |
1464 |
|
1480 | display_outgoing_revs(ui, repo, o, opts) | ||
1465 | if opts.get(b'graph'): |
|
|||
1466 | revdag = logcmdutil.graphrevs(repo, o, opts) |
|
|||
1467 | ui.pager(b'outgoing') |
|
|||
1468 | displayer = logcmdutil.changesetdisplayer( |
|
|||
1469 | ui, repo, opts, buffered=True |
|
|||
1470 | ) |
|
|||
1471 | logcmdutil.displaygraph( |
|
|||
1472 | ui, repo, revdag, displayer, graphmod.asciiedges |
|
|||
1473 | ) |
|
|||
1474 | else: |
|
|||
1475 | ui.pager(b'outgoing') |
|
|||
1476 | displayer = logcmdutil.changesetdisplayer(ui, repo, opts) |
|
|||
1477 | for n in _outgoing_filter(repo, o, opts): |
|
|||
1478 | displayer.show(repo[n]) |
|
|||
1479 | displayer.close() |
|
|||
1480 | for oth in others: |
|
1481 | for oth in others: | |
1481 | cmdutil.outgoinghooks(ui, repo, oth, opts, o) |
|
1482 | cmdutil.outgoinghooks(ui, repo, oth, opts, o) | |
1482 | ret = min(ret, _outgoing_recurse(ui, repo, dests, opts)) |
|
1483 | ret = min(ret, _outgoing_recurse(ui, repo, dests, opts)) |
General Comments 0
You need to be logged in to leave comments.
Login now