Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 24138:eabe44ec5af5
pull: print "pulling from foo" before accessing the other repo
1. This is consistent with pushing.
2. This allows to see the URL of the other repo in case accessing the repo
fails, e.g. wrong ssh path or issues with the https certificate, without
using --debug or showconfig paths.
Additionally add test for this in the context of ssh with a wrong path.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 24 Feb 2015 10:55:24 +0100 |
parents | 4cb8002658d6 |
children | 9cb1f82a2571 |
comparison
equal
deleted
inserted
replaced
24137:dcfdfd63bde4 | 24138:eabe44ec5af5 |
---|---|
4982 See :hg:`help urls` for more information. | 4982 See :hg:`help urls` for more information. |
4983 | 4983 |
4984 Returns 0 on success, 1 if an update had unresolved files. | 4984 Returns 0 on success, 1 if an update had unresolved files. |
4985 """ | 4985 """ |
4986 source, branches = hg.parseurl(ui.expandpath(source), opts.get('branch')) | 4986 source, branches = hg.parseurl(ui.expandpath(source), opts.get('branch')) |
4987 ui.status(_('pulling from %s\n') % util.hidepassword(source)) | |
4987 other = hg.peer(repo, opts, source) | 4988 other = hg.peer(repo, opts, source) |
4988 try: | 4989 try: |
4989 ui.status(_('pulling from %s\n') % util.hidepassword(source)) | |
4990 revs, checkout = hg.addbranchrevs(repo, other, branches, | 4990 revs, checkout = hg.addbranchrevs(repo, other, branches, |
4991 opts.get('rev')) | 4991 opts.get('rev')) |
4992 | 4992 |
4993 remotebookmarks = other.listkeys('bookmarks') | 4993 remotebookmarks = other.listkeys('bookmarks') |
4994 | 4994 |