diff -r 5135c2be6959 -r b5513ee85dd8 mercurial/subrepo.py --- a/mercurial/subrepo.py Mon Apr 27 21:15:25 2015 -0400 +++ b/mercurial/subrepo.py Mon Apr 27 21:34:23 2015 -0400 @@ -881,6 +881,10 @@ @annotatesubrepoerror def incoming(self, ui, source, opts): + if 'rev' in opts or 'branch' in opts: + opts = copy.copy(opts) + opts.pop('rev', None) + opts.pop('branch', None) return hg.incoming(ui, self._repo, _abssource(self._repo, False), opts) @annotatesubrepoerror