mercurial/commands.py
changeset 8815 e87b0fc4750b
parent 8812 859f841937d0
child 8834 6d36fc70754e
equal deleted inserted replaced
8814:ab668c92a036 8815:e87b0fc4750b
  2287         ui.expandpath(dest or 'default-push', dest or 'default'), opts.get('rev'))
  2287         ui.expandpath(dest or 'default-push', dest or 'default'), opts.get('rev'))
  2288     other = hg.repository(cmdutil.remoteui(repo, opts), dest)
  2288     other = hg.repository(cmdutil.remoteui(repo, opts), dest)
  2289     ui.status(_('pushing to %s\n') % url.hidepassword(dest))
  2289     ui.status(_('pushing to %s\n') % url.hidepassword(dest))
  2290     if revs:
  2290     if revs:
  2291         revs = [repo.lookup(rev) for rev in revs]
  2291         revs = [repo.lookup(rev) for rev in revs]
       
  2292 
       
  2293     # push subrepos depth-first for coherent ordering
       
  2294     c = repo['']
       
  2295     subs = c.substate # only repos that are committed
       
  2296     for s in sorted(subs):
       
  2297         c.sub(s).push(opts.get('force'))
       
  2298 
  2292     r = repo.push(other, opts.get('force'), revs=revs)
  2299     r = repo.push(other, opts.get('force'), revs=revs)
  2293     return r == 0
  2300     return r == 0
  2294 
  2301 
  2295 def recover(ui, repo):
  2302 def recover(ui, repo):
  2296     """roll back an interrupted transaction
  2303     """roll back an interrupted transaction