mercurial/commands.py
changeset 15708 309e49491253
parent 15644 43bb9c5ab963
child 15717 9cf1620e1e75
equal deleted inserted replaced
15707:dc3eefe0c80e 15708:309e49491253
  4360     try:
  4360     try:
  4361         # push subrepos depth-first for coherent ordering
  4361         # push subrepos depth-first for coherent ordering
  4362         c = repo['']
  4362         c = repo['']
  4363         subs = c.substate # only repos that are committed
  4363         subs = c.substate # only repos that are committed
  4364         for s in sorted(subs):
  4364         for s in sorted(subs):
  4365             if not c.sub(s).push(opts.get('force')):
  4365             if not c.sub(s).push(opts):
  4366                 return False
  4366                 return False
  4367     finally:
  4367     finally:
  4368         del repo._subtoppath
  4368         del repo._subtoppath
  4369     result = repo.push(other, opts.get('force'), revs=revs,
  4369     result = repo.push(other, opts.get('force'), revs=revs,
  4370                        newbranch=opts.get('new_branch'))
  4370                        newbranch=opts.get('new_branch'))