comparison 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
comparison
equal deleted inserted replaced
2597:5ba8be56fa8f 2598:b898afee9d0d
214 214
215 path = self.config("paths", loc) 215 path = self.config("paths", loc)
216 if not path and default is not None: 216 if not path and default is not None:
217 path = self.config("paths", default) 217 path = self.config("paths", default)
218 return path or loc 218 return path or loc
219
220 def setconfig_remoteopts(self, **opts):
221 if opts.get('ssh'):
222 self.setconfig("ui", "ssh", opts['ssh'])
223 if opts.get('remotecmd'):
224 self.setconfig("ui", "remotecmd", opts['remotecmd'])
219 225
220 def write(self, *args): 226 def write(self, *args):
221 if self.header: 227 if self.header:
222 if self.header != self.prev_header: 228 if self.header != self.prev_header:
223 self.prev_header = self.header 229 self.prev_header = self.header