2997 # this lets simultaneous -r, -b options continue working |
2997 # this lets simultaneous -r, -b options continue working |
2998 opts.setdefault('rev', []).append("null") |
2998 opts.setdefault('rev', []).append("null") |
2999 |
2999 |
3000 dest = ui.expandpath(dest or 'default-push', dest or 'default') |
3000 dest = ui.expandpath(dest or 'default-push', dest or 'default') |
3001 dest, branches = hg.parseurl(dest, opts.get('branch')) |
3001 dest, branches = hg.parseurl(dest, opts.get('branch')) |
|
3002 ui.status(_('pushing to %s\n') % url.hidepassword(dest)) |
3002 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) |
3003 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) |
3003 other = hg.repository(hg.remoteui(repo, opts), dest) |
3004 other = hg.repository(hg.remoteui(repo, opts), dest) |
3004 ui.status(_('pushing to %s\n') % url.hidepassword(dest)) |
|
3005 if revs: |
3005 if revs: |
3006 revs = [repo.lookup(rev) for rev in revs] |
3006 revs = [repo.lookup(rev) for rev in revs] |
3007 |
3007 |
3008 repo._subtoppath = dest |
3008 repo._subtoppath = dest |
3009 try: |
3009 try: |