mercurial/commands.py
changeset 11211 e43c23d189a5
parent 11193 687c7d395f20
child 11218 ffd59c71b8ee
equal deleted inserted replaced
11210:0c0088881562 11211:e43c23d189a5
  2562     subs = c.substate # only repos that are committed
  2562     subs = c.substate # only repos that are committed
  2563     for s in sorted(subs):
  2563     for s in sorted(subs):
  2564         if not c.sub(s).push(opts.get('force')):
  2564         if not c.sub(s).push(opts.get('force')):
  2565             return False
  2565             return False
  2566 
  2566 
  2567     r = repo.push(other, opts.get('force'), revs=revs)
  2567     r = repo.push(other, opts.get('force'), revs=revs,
       
  2568                   newbranch=opts.get('new_branch'))
  2568     return r == 0
  2569     return r == 0
  2569 
  2570 
  2570 def recover(ui, repo):
  2571 def recover(ui, repo):
  2571     """roll back an interrupted transaction
  2572     """roll back an interrupted transaction
  2572 
  2573 
  3946          [('f', 'force', None, _('force push')),
  3947          [('f', 'force', None, _('force push')),
  3947           ('r', 'rev', [],
  3948           ('r', 'rev', [],
  3948            _('a changeset intended to be included in the destination')),
  3949            _('a changeset intended to be included in the destination')),
  3949           ('b', 'branch', [],
  3950           ('b', 'branch', [],
  3950            _('a specific branch you would like to push')),
  3951            _('a specific branch you would like to push')),
       
  3952           ('', 'new-branch', False, _('allow pushing a new branch')),
  3951          ] + remoteopts,
  3953          ] + remoteopts,
  3952          _('[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]')),
  3954          _('[-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]')),
  3953     "recover": (recover, []),
  3955     "recover": (recover, []),
  3954     "^remove|rm":
  3956     "^remove|rm":
  3955         (remove,
  3957         (remove,