Mercurial > public > mercurial-scm > hg
diff hgext/fetch.py @ 5798:86f5d8f608b7
fetch: hide authentication details
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 04 Jan 2008 11:58:27 -0800 |
parents | c80af96943aa |
children | 989467e8e3a9 |
line wrap: on
line diff
--- a/hgext/fetch.py Fri Jan 04 11:52:24 2008 -0800 +++ b/hgext/fetch.py Fri Jan 04 11:58:27 2008 -0800 @@ -43,7 +43,8 @@ if not err: mod, add, rem = repo.status()[:3] message = (cmdutil.logmessage(opts) or - (_('Automated merge with %s') % other.url())) + (_('Automated merge with %s') % + util.removeauth(other.url()))) n = repo.commit(mod + add + rem, message, opts['user'], opts['date'], force_editor=opts.get('force_editor')) @@ -54,7 +55,8 @@ cmdutil.setremoteconfig(ui, opts) other = hg.repository(ui, ui.expandpath(source)) - ui.status(_('pulling from %s\n') % ui.expandpath(source)) + ui.status(_('pulling from %s\n') % + util.hidepassword(ui.expandpath(source))) revs = None if opts['rev'] and not other.local(): raise util.Abort(_("fetch -r doesn't work for remote repositories yet"))