Show More
@@ -5706,7 +5706,7 b' def push(ui, repo, dest=None, **opts):' | |||
|
5706 | 5706 | # if we try to push a deleted bookmark, translate it to null |
|
5707 | 5707 | # this lets simultaneous -r, -b options continue working |
|
5708 | 5708 | opts.setdefault(b'rev', []).append(b"null") |
|
5709 | ||
|
5709 | if True: | |
|
5710 | 5710 | path = ui.getpath(dest, default=(b'default-push', b'default')) |
|
5711 | 5711 | if not path: |
|
5712 | 5712 | raise error.ConfigError( |
@@ -5716,7 +5716,9 b' def push(ui, repo, dest=None, **opts):' | |||
|
5716 | 5716 | dest = path.pushloc or path.loc |
|
5717 | 5717 | branches = (path.branch, opts.get(b'branch') or []) |
|
5718 | 5718 | ui.status(_(b'pushing to %s\n') % util.hidepassword(dest)) |
|
5719 |
revs, checkout = hg.addbranchrevs( |
|
|
5719 | revs, checkout = hg.addbranchrevs( | |
|
5720 | repo, repo, branches, opts.get(b'rev') | |
|
5721 | ) | |
|
5720 | 5722 | other = hg.peer(repo, opts, dest) |
|
5721 | 5723 | |
|
5722 | 5724 | try: |
@@ -5735,7 +5737,9 b' def push(ui, repo, dest=None, **opts):' | |||
|
5735 | 5737 | revs = [repo[rev].node() for rev in revs] |
|
5736 | 5738 | if not revs: |
|
5737 | 5739 | raise error.InputError( |
|
5738 | _(b'default push revset for path evaluates to an empty set') | |
|
5740 | _( | |
|
5741 | b'default push revset for path evaluates to an empty set' | |
|
5742 | ) | |
|
5739 | 5743 | ) |
|
5740 | 5744 | elif ui.configbool(b'commands', b'push.require-revs'): |
|
5741 | 5745 | raise error.InputError( |
General Comments 0
You need to be logged in to leave comments.
Login now