comparison mercurial/subrepo.py @ 16022:04604d1a9fc3 stable

push: more precise failure check on subrepo push This will let us distinguish between nothing to push and push failed
author Matt Mackall <mpm@selenic.com>
date Mon, 30 Jan 2012 11:26:20 -0600
parents 2bd54ffaa27e
children bcb973abcc0b 8ae7626d8bf1
comparison
equal deleted inserted replaced
16021:7f47873d7484 16022:04604d1a9fc3
526 526
527 # push subrepos depth-first for coherent ordering 527 # push subrepos depth-first for coherent ordering
528 c = self._repo[''] 528 c = self._repo['']
529 subs = c.substate # only repos that are committed 529 subs = c.substate # only repos that are committed
530 for s in sorted(subs): 530 for s in sorted(subs):
531 if not c.sub(s).push(opts): 531 if c.sub(s).push(opts) == 0:
532 return False 532 return False
533 533
534 dsturl = _abssource(self._repo, True) 534 dsturl = _abssource(self._repo, True)
535 self._repo.ui.status(_('pushing subrepo %s to %s\n') % 535 self._repo.ui.status(_('pushing subrepo %s to %s\n') %
536 (subrelpath(self), dsturl)) 536 (subrelpath(self), dsturl))