Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.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 | 7f47873d7484 |
children | 90f8b8dd0326 |
comparison
equal
deleted
inserted
replaced
16021:7f47873d7484 | 16022:04604d1a9fc3 |
---|---|
4417 try: | 4417 try: |
4418 # push subrepos depth-first for coherent ordering | 4418 # push subrepos depth-first for coherent ordering |
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 |
4426 result = repo.push(other, opts.get('force'), revs=revs, | 4426 result = repo.push(other, opts.get('force'), revs=revs, |
4427 newbranch=opts.get('new_branch')) | 4427 newbranch=opts.get('new_branch')) |