Mercurial > hg
diff mercurial/ui.py @ 2598:b898afee9d0d
Add ui method to set --ssh/--remotecmd, use it in init/clone/pull/push/in/out.
The only user visible change is that 'hg init' now accepts this options, too.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 12 Jul 2006 08:57:18 +0200 |
parents | 1f4703115e28 |
children | 46e52bbb9b1a |
line wrap: on
line diff
--- a/mercurial/ui.py Tue Jul 11 16:18:53 2006 -0700 +++ b/mercurial/ui.py Wed Jul 12 08:57:18 2006 +0200 @@ -217,6 +217,12 @@ path = self.config("paths", default) return path or loc + def setconfig_remoteopts(self, **opts): + if opts.get('ssh'): + self.setconfig("ui", "ssh", opts['ssh']) + if opts.get('remotecmd'): + self.setconfig("ui", "remotecmd", opts['remotecmd']) + def write(self, *args): if self.header: if self.header != self.prev_header: