##// END OF EJS Templates
incoming: leverage cmdutil.check_incompatible_arguments()...
Martin von Zweigbergk -
r46334:b5e0746e default
parent child Browse files
Show More
@@ -4227,8 +4227,7 b' def incoming(ui, repo, source=b"default"'
4227 hg._incoming(display, lambda: 1, ui, repo, source, opts, buffered=True)
4227 hg._incoming(display, lambda: 1, ui, repo, source, opts, buffered=True)
4228 return 0
4228 return 0
4229
4229
4230 if opts.get(b'bundle') and opts.get(b'subrepos'):
4230 cmdutil.check_incompatible_arguments(opts, b'subrepos', [b'bundle'])
4231 raise error.Abort(_(b'cannot combine --bundle and --subrepos'))
4232
4231
4233 if opts.get(b'bookmarks'):
4232 if opts.get(b'bookmarks'):
4234 source, branches = hg.parseurl(
4233 source, branches = hg.parseurl(
@@ -681,7 +681,7 b' Test incoming:'
681 no changes found
681 no changes found
682
682
683 $ hg incoming -S --bundle incoming.hg
683 $ hg incoming -S --bundle incoming.hg
684 abort: cannot combine --bundle and --subrepos
684 abort: cannot specify both --subrepos and --bundle
685 [255]
685 [255]
686
686
687 Test missing subrepo:
687 Test missing subrepo:
General Comments 0
You need to be logged in to leave comments. Login now