mercurial/subrepo.py
branchstable
changeset 24876 b5513ee85dd8
parent 24875 5135c2be6959
child 24877 cc497780eaf9
--- 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