diff mercurial/ui.py @ 2731: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
line wrap: on
line diff
--- a/mercurial/ui.py	Sun Jul 30 13:29:19 2006 -0700
+++ b/mercurial/ui.py	Mon Jul 31 00:47:43 2006 -0500
@@ -217,12 +217,6 @@
             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: