Show More
@@ -2999,9 +2999,9 b' def push(ui, repo, dest=None, **opts):' | |||||
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 |
@@ -472,12 +472,12 b' def incoming(ui, repo, source, opts):' | |||||
472 | def _outgoing(ui, repo, dest, opts): |
|
472 | def _outgoing(ui, repo, dest, opts): | |
473 | dest = ui.expandpath(dest or 'default-push', dest or 'default') |
|
473 | dest = ui.expandpath(dest or 'default-push', dest or 'default') | |
474 | dest, branches = parseurl(dest, opts.get('branch')) |
|
474 | dest, branches = parseurl(dest, opts.get('branch')) | |
|
475 | ui.status(_('comparing with %s\n') % url.hidepassword(dest)) | |||
475 | revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev')) |
|
476 | revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev')) | |
476 | if revs: |
|
477 | if revs: | |
477 | revs = [repo.lookup(rev) for rev in revs] |
|
478 | revs = [repo.lookup(rev) for rev in revs] | |
478 |
|
479 | |||
479 | other = repository(remoteui(repo, opts), dest) |
|
480 | other = repository(remoteui(repo, opts), dest) | |
480 | ui.status(_('comparing with %s\n') % url.hidepassword(dest)) |
|
|||
481 | o = discovery.findoutgoing(repo, other, force=opts.get('force')) |
|
481 | o = discovery.findoutgoing(repo, other, force=opts.get('force')) | |
482 | if not o: |
|
482 | if not o: | |
483 | ui.status(_("no changes found\n")) |
|
483 | ui.status(_("no changes found\n")) |
@@ -266,6 +266,7 b' push should succeed even though it has a' | |||||
266 | passwords in ssh urls are not supported |
|
266 | passwords in ssh urls are not supported | |
267 |
|
267 | |||
268 | $ hg push ssh://user:erroneouspwd@dummy/remote |
|
268 | $ hg push ssh://user:erroneouspwd@dummy/remote | |
|
269 | pushing to ssh://user:***@dummy/remote | |||
269 | abort: password in URL not supported! |
|
270 | abort: password in URL not supported! | |
270 | [255] |
|
271 | [255] | |
271 |
|
272 |
General Comments 0
You need to be logged in to leave comments.
Login now