##// END OF EJS Templates
push: more precise failure check on subrepo push...
Matt Mackall -
r16022:04604d1a stable
parent child Browse files
Show More
@@ -4419,7 +4419,7 b' def push(ui, repo, dest=None, **opts):'
4419 c = repo['']
4419 c = repo['']
4420 subs = c.substate # only repos that are committed
4420 subs = c.substate # only repos that are committed
4421 for s in sorted(subs):
4421 for s in sorted(subs):
4422 if not c.sub(s).push(opts):
4422 if c.sub(s).push(opts) == 0:
4423 return False
4423 return False
4424 finally:
4424 finally:
4425 del repo._subtoppath
4425 del repo._subtoppath
@@ -528,7 +528,7 b' class hgsubrepo(abstractsubrepo):'
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)
General Comments 0
You need to be logged in to leave comments. Login now