Mercurial > public > mercurial-scm > hg
diff mercurial/subrepo.py @ 12274:c02e1ed3d407
incoming: recurse into subrepositories with --subrepos/-S flag
As with push and outgoing, the optional source path is ignored for the
subrepositories. Fixing this is Issue1852.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Mon, 13 Sep 2010 13:09:31 +0200 |
parents | 42ecd56399d7 |
children | 510afb31cf99 |
line wrap: on
line diff
--- a/mercurial/subrepo.py Mon Sep 13 13:09:30 2010 +0200 +++ b/mercurial/subrepo.py Mon Sep 13 13:09:31 2010 +0200 @@ -267,6 +267,9 @@ def outgoing(self, ui, dest, opts): return 1 + def incoming(self, ui, source, opts): + return 1 + class hgsubrepo(abstractsubrepo): def __init__(self, ctx, path, state): self._path = path @@ -400,6 +403,9 @@ def outgoing(self, ui, dest, opts): return hg.outgoing(ui, self._repo, _abssource(self._repo, True), opts) + def incoming(self, ui, source, opts): + return hg.incoming(ui, self._repo, _abssource(self._repo, False), opts) + class svnsubrepo(abstractsubrepo): def __init__(self, ctx, path, state): self._path = path