mercurial/commands.py
changeset 37152 0348c778bf70
parent 37150 335e19c6b7fa
child 37164 b229fd9adeae
equal deleted inserted replaced
37151:05c13e5aa9ec 37152:0348c778bf70
  4164                                 'empty set'))
  4164                                 'empty set'))
  4165 
  4165 
  4166     repo._subtoppath = dest
  4166     repo._subtoppath = dest
  4167     try:
  4167     try:
  4168         # push subrepos depth-first for coherent ordering
  4168         # push subrepos depth-first for coherent ordering
  4169         c = repo['']
  4169         c = repo['.']
  4170         subs = c.substate # only repos that are committed
  4170         subs = c.substate # only repos that are committed
  4171         for s in sorted(subs):
  4171         for s in sorted(subs):
  4172             result = c.sub(s).push(opts)
  4172             result = c.sub(s).push(opts)
  4173             if result == 0:
  4173             if result == 0:
  4174                 return not result
  4174                 return not result