Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/ui.py @ 2738:ad4155e757da
Kill ui.setconfig_remoteopts
This brought too much knowledge about command line particulars into
the ui code. Moved to commands.py.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 31 Jul 2006 00:47:43 -0500 |
parents | e6a41cbaa260 |
children | 345bac2bc4ec 2efa9b8aed30 |
comparison
equal
deleted
inserted
replaced
2730:819485c43ce3 | 2738:ad4155e757da |
---|---|
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']) | |
225 | 219 |
226 def write(self, *args): | 220 def write(self, *args): |
227 if self.header: | 221 if self.header: |
228 if self.header != self.prev_header: | 222 if self.header != self.prev_header: |
229 self.prev_header = self.header | 223 self.prev_header = self.header |