mercurial/commands.py
branchstable
changeset 16022 04604d1a9fc3
parent 16021 7f47873d7484
child 16023 90f8b8dd0326
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'))