Show More
@@ -470,6 +470,34 def incoming(ui, repo, other): | |||
|
470 | 470 | |
|
471 | 471 | return 0 |
|
472 | 472 | |
|
473 | def outgoing(ui, repo, other): | |
|
474 | '''Show bookmarks outgoing from repo to other | |
|
475 | ''' | |
|
476 | ui.status(_("searching for changed bookmarks\n")) | |
|
477 | ||
|
478 | r = compare(repo, repo._bookmarks, other.listkeys('bookmarks'), | |
|
479 | srchex=hex) | |
|
480 | addsrc, adddst, advsrc, advdst, diverge, differ, invalid, same = r | |
|
481 | ||
|
482 | outgoings = [] | |
|
483 | if ui.debugflag: | |
|
484 | getid = lambda id: id | |
|
485 | else: | |
|
486 | getid = lambda id: id[:12] | |
|
487 | def add(b, id): | |
|
488 | outgoings.append(" %-25s %s\n" % (b, getid(id))) | |
|
489 | for b, scid, dcid in addsrc: | |
|
490 | add(b, scid) | |
|
491 | ||
|
492 | if not outgoings: | |
|
493 | ui.status(_("no changed bookmarks found\n")) | |
|
494 | return 1 | |
|
495 | ||
|
496 | for s in sorted(outgoings): | |
|
497 | ui.write(s) | |
|
498 | ||
|
499 | return 0 | |
|
500 | ||
|
473 | 501 | def diff(ui, dst, src): |
|
474 | 502 | ui.status(_("searching for changed bookmarks\n")) |
|
475 | 503 |
@@ -4757,7 +4757,7 def outgoing(ui, repo, dest=None, **opts | |||
|
4757 | 4757 | ui.warn(_("remote doesn't support bookmarks\n")) |
|
4758 | 4758 | return 0 |
|
4759 | 4759 | ui.status(_('comparing with %s\n') % util.hidepassword(dest)) |
|
4760 |
return bookmarks. |
|
|
4760 | return bookmarks.outgoing(ui, repo, other) | |
|
4761 | 4761 | |
|
4762 | 4762 | repo._subtoppath = ui.expandpath(dest or 'default-push', dest or 'default') |
|
4763 | 4763 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now