##// END OF EJS Templates
bookmarks: fix in/out return values
Matt Mackall -
r11444:b9a46acd stable
parent child Browse files
Show More
@@ -463,15 +463,17 b' def diffbookmarks(ui, repo, remote):'
463 463
464 464 if len(diff) <= 0:
465 465 ui.status(_("no changes found\n"))
466 return 1
467 return 0
466 468
467 469 def incoming(oldincoming, ui, repo, source="default", **opts):
468 470 if opts.get('bookmarks'):
469 471 source, branches = hg.parseurl(ui.expandpath(source), opts.get('branch'))
470 472 other = hg.repository(hg.remoteui(repo, opts), source)
471 473 ui.status(_('comparing with %s\n') % url.hidepassword(source))
472 diffbookmarks(ui, repo, other)
474 return diffbookmarks(ui, repo, other)
473 475 else:
474 oldincoming(ui, repo, source, **opts)
476 return oldincoming(ui, repo, source, **opts)
475 477
476 478 def outgoing(oldoutgoing, ui, repo, dest=None, **opts):
477 479 if opts.get('bookmarks'):
@@ -479,9 +481,9 b' def outgoing(oldoutgoing, ui, repo, dest'
479 481 dest, branches = hg.parseurl(dest, opts.get('branch'))
480 482 other = hg.repository(hg.remoteui(repo, opts), dest)
481 483 ui.status(_('comparing with %s\n') % url.hidepassword(dest))
482 diffbookmarks(ui, other, repo)
484 return diffbookmarks(ui, other, repo)
483 485 else:
484 oldoutgoing(ui, repo, dest, **opts)
486 return oldoutgoing(ui, repo, dest, **opts)
485 487
486 488 def uisetup(ui):
487 489 extensions.wrapfunction(repair, "strip", strip)
General Comments 0
You need to be logged in to leave comments. Login now