changeset 2598 | b898afee9d0d |
parent 2584 | 1f4703115e28 |
child 2624 | 46e52bbb9b1a |
--- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -217,6 +217,12 @@ class ui(object): 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: