##// END OF EJS Templates
subrepo: return non-zero exit code when a subrepo push doesn't succeed
Matt Mackall -
r21034:693b4cb4 default
parent child Browse files
Show More
@@ -4774,8 +4774,9 b' def push(ui, repo, dest=None, **opts):'
4774 c = repo['']
4774 c = repo['']
4775 subs = c.substate # only repos that are committed
4775 subs = c.substate # only repos that are committed
4776 for s in sorted(subs):
4776 for s in sorted(subs):
4777 if c.sub(s).push(opts) == 0:
4777 result = c.sub(s).push(opts)
4778 return False
4778 if result == 0:
4779 return not result
4779 finally:
4780 finally:
4780 del repo._subtoppath
4781 del repo._subtoppath
4781 result = repo.push(other, opts.get('force'), revs=revs,
4782 result = repo.push(other, opts.get('force'), revs=revs,
General Comments 0
You need to be logged in to leave comments. Login now