Mercurial > public > mercurial-scm > hg-stable
diff mercurial/subrepo.py @ 12272:42ecd56399d7
outgoing: recurse into subrepositories with --subrepos/-S flag
As with push, the optional destination path is ignored for the
subrepositories, i.e., they are always compared with their default
push path. Fixing this is Issue1852.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Mon, 13 Sep 2010 13:09:26 +0200 |
parents | 166b9866580a |
children | c02e1ed3d407 |
line wrap: on
line diff
--- a/mercurial/subrepo.py Mon Sep 13 13:09:24 2010 +0200 +++ b/mercurial/subrepo.py Mon Sep 13 13:09:26 2010 +0200 @@ -264,6 +264,9 @@ def diff(self, diffopts, node2, match, prefix, **opts): pass + def outgoing(self, ui, dest, opts): + return 1 + class hgsubrepo(abstractsubrepo): def __init__(self, ctx, path, state): self._path = path @@ -394,6 +397,9 @@ other = hg.repository(self._repo.ui, dsturl) return self._repo.push(other, force) + def outgoing(self, ui, dest, opts): + return hg.outgoing(ui, self._repo, _abssource(self._repo, True), opts) + class svnsubrepo(abstractsubrepo): def __init__(self, ctx, path, state): self._path = path