Show More
@@ -2453,7 +2453,8 b' def push(ui, repo, dest=None, **opts):' | |||||
2453 | c = repo[''] |
|
2453 | c = repo[''] | |
2454 | subs = c.substate # only repos that are committed |
|
2454 | subs = c.substate # only repos that are committed | |
2455 | for s in sorted(subs): |
|
2455 | for s in sorted(subs): | |
2456 | c.sub(s).push(opts.get('force')) |
|
2456 | if not c.sub(s).push(opts.get('force')): | |
|
2457 | return False | |||
2457 |
|
2458 | |||
2458 | r = repo.push(other, opts.get('force'), revs=revs) |
|
2459 | r = repo.push(other, opts.get('force'), revs=revs) | |
2459 | return r == 0 |
|
2460 | return r == 0 |
@@ -258,12 +258,13 b' class hgsubrepo(object):' | |||||
258 | c = self._repo[''] |
|
258 | c = self._repo[''] | |
259 | subs = c.substate # only repos that are committed |
|
259 | subs = c.substate # only repos that are committed | |
260 | for s in sorted(subs): |
|
260 | for s in sorted(subs): | |
261 | c.sub(s).push(force) |
|
261 | if not c.sub(s).push(force): | |
|
262 | return False | |||
262 |
|
263 | |||
263 | self._repo.ui.status(_('pushing subrepo %s\n') % self._path) |
|
264 | self._repo.ui.status(_('pushing subrepo %s\n') % self._path) | |
264 | dsturl = _abssource(self._repo, True) |
|
265 | dsturl = _abssource(self._repo, True) | |
265 | other = hg.repository(self._repo.ui, dsturl) |
|
266 | other = hg.repository(self._repo.ui, dsturl) | |
266 | self._repo.push(other, force) |
|
267 | return self._repo.push(other, force) | |
267 |
|
268 | |||
268 | class svnsubrepo(object): |
|
269 | class svnsubrepo(object): | |
269 | def __init__(self, ctx, path, state): |
|
270 | def __init__(self, ctx, path, state): |
General Comments 0
You need to be logged in to leave comments.
Login now