equal
deleted
inserted
replaced
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 |