871 def outgoing(self, ui, dest, opts): |
871 def outgoing(self, ui, dest, opts): |
872 if b'rev' in opts or b'branch' in opts: |
872 if b'rev' in opts or b'branch' in opts: |
873 opts = copy.copy(opts) |
873 opts = copy.copy(opts) |
874 opts.pop(b'rev', None) |
874 opts.pop(b'rev', None) |
875 opts.pop(b'branch', None) |
875 opts.pop(b'branch', None) |
876 return hg.outgoing(ui, self._repo, _abssource(self._repo, True), opts) |
876 subpath = subrepoutil.repo_rel_or_abs_source(self._repo) |
|
877 return hg.outgoing(ui, self._repo, dest, opts, subpath=subpath) |
877 |
878 |
878 @annotatesubrepoerror |
879 @annotatesubrepoerror |
879 def incoming(self, ui, source, opts): |
880 def incoming(self, ui, source, opts): |
880 if b'rev' in opts or b'branch' in opts: |
881 if b'rev' in opts or b'branch' in opts: |
881 opts = copy.copy(opts) |
882 opts = copy.copy(opts) |