comparison 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
comparison
equal deleted inserted replaced
12273:e392d00ab5b0 12274:c02e1ed3d407
265 pass 265 pass
266 266
267 def outgoing(self, ui, dest, opts): 267 def outgoing(self, ui, dest, opts):
268 return 1 268 return 1
269 269
270 def incoming(self, ui, source, opts):
271 return 1
272
270 class hgsubrepo(abstractsubrepo): 273 class hgsubrepo(abstractsubrepo):
271 def __init__(self, ctx, path, state): 274 def __init__(self, ctx, path, state):
272 self._path = path 275 self._path = path
273 self._state = state 276 self._state = state
274 r = ctx._repo 277 r = ctx._repo
397 other = hg.repository(self._repo.ui, dsturl) 400 other = hg.repository(self._repo.ui, dsturl)
398 return self._repo.push(other, force) 401 return self._repo.push(other, force)
399 402
400 def outgoing(self, ui, dest, opts): 403 def outgoing(self, ui, dest, opts):
401 return hg.outgoing(ui, self._repo, _abssource(self._repo, True), opts) 404 return hg.outgoing(ui, self._repo, _abssource(self._repo, True), opts)
405
406 def incoming(self, ui, source, opts):
407 return hg.incoming(ui, self._repo, _abssource(self._repo, False), opts)
402 408
403 class svnsubrepo(abstractsubrepo): 409 class svnsubrepo(abstractsubrepo):
404 def __init__(self, ctx, path, state): 410 def __init__(self, ctx, path, state):
405 self._path = path 411 self._path = path
406 self._state = state 412 self._state = state