# HG changeset patch # User Matt Mackall # Date 1373991496 18000 # Node ID 447332970d7bbddfd81a12178ade471b7b5756b2 # Parent b4744c3b991efa6f2b30af5b8807c92cfb0634ce sshpeer: mark _validrepo internal diff -r b4744c3b991e -r 447332970d7b 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: