sshpeer: mark _validrepo internal
authorMatt Mackall <mpm@selenic.com>
Tue, 16 Jul 2013 11:18:16 -0500
changeset 19405 447332970d7b
parent 19404 b4744c3b991e
child 19406 3185b347ae98
sshpeer: mark _validrepo internal
mercurial/sshpeer.py
--- a/mercurial/sshpeer.py	Tue Jul 16 11:17:01 2013 -0500
+++ b/mercurial/sshpeer.py	Tue Jul 16 11:18:16 2013 -0500
@@ -56,19 +56,19 @@
             if res != 0:
                 self._abort(error.RepoError(_("could not create remote repo")))
 
-        self.validate_repo(ui, sshcmd, args, remotecmd)
+        self._validaterepo(sshcmd, args, remotecmd)
 
     def url(self):
         return self._url
 
-    def validate_repo(self, ui, sshcmd, args, remotecmd):
+    def _validaterepo(self, sshcmd, args, remotecmd):
         # cleanup up previous run
         self.cleanup()
 
         cmd = '%s %s %s' % (sshcmd, args,
             util.shellquote("%s -R %s serve --stdio" %
                 (_serverquote(remotecmd), _serverquote(self.path))))
-        ui.note(_('running %s\n') % cmd)
+        self.ui.note(_('running %s\n') % cmd)
         cmd = util.quotecommand(cmd)
 
         # while self.subprocess isn't used, having it allows the subprocess to
@@ -86,7 +86,7 @@
             if lines[-1] == "1\n" and l == "\n":
                 break
             if l:
-                ui.debug("remote: ", l)
+                self.ui.debug("remote: ", l)
             lines.append(l)
             max_noise -= 1
         else: