Source / thg / manual / 2.4 / serve.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>5.10. Serve &mdash; TortoiseHg 2.4.0 documentation</title>
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
        URL_ROOT:    '',
        VERSION:     '2.4.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="TortoiseHg 2.4.0 documentation" href="index.html" />
    <link rel="up" title="5. TortoiseHg in daily use" href="daily.html" />
    <link rel="next" title="5.11. Detect Renames" href="guess.html" />
    <link rel="prev" title="5.9. Synchronize" href="sync.html" /> 
    <div class="related">
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="guess.html" title="5.11. Detect Renames"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="sync.html" title="5.9. Synchronize"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">TortoiseHg 2.4.0 documentation</a> &raquo;</li>
          <li><a href="daily.html" accesskey="U">5. TortoiseHg in daily use</a> &raquo;</li> 

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
  <div class="section" id="module-serve.dialog">
<span id="serve"></span><h1>5.10. Serve<a class="headerlink" href="#module-serve.dialog" title="Permalink to this headline"></a></h1>
<div class="figure">
<img alt="Web server dialog" src="_images/serve.png" />
<p>The serve tool is a wrapper for Mercurial&#8217;s built-in web server. Once
launched, a computer can connect to the http port and browse your
repositories, perform clone, pull, or even push operations if enabled.</p>
<p>Toolbar buttons:</p>
<div><dl class="docutils">
<dt><em class="guilabel">Start</em></dt>
<dd>start the web server</dd>
<dt><em class="guilabel">Stop</em></dt>
<dd>stop the web server</dd>
<dt><em class="guilabel">Configure</em></dt>
<dd>Configure repository web style, description, and access policies</dd>
<p>When the settings dialog is launched via the <em class="guilabel">Configure</em>
button, it is run in the context of the current repository.  Please
visit the Mercurial wiki for detailed descriptions of the various
web configurations.</p>
<p>In TortoiseHg 2.0, the serve tool natively supports collections of local
repositories.  Just drag them onto the web serve dialog while it is not
running, or add them by hand using the editing buttons.  The repository
collections can be saved and reloaded.</p>
<div class="section" id="from-command-line">
<h2>5.10.1. From command line<a class="headerlink" href="#from-command-line" title="Permalink to this headline"></a></h2>
<p>The server tool can be started from command line</p>
<div class="highlight-python"><pre>thg serve [OPTION]...

start stand-alone webserver


        --webdir-conf  name of the webdir config file

use "thg -v help serve" to show global options</pre>

      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="index.html">
              <img class="logo" src="_static/thg_logo_92x50.png" alt="Logo"/>
  <h3><a href="index.html">Table Of Contents</a></h3>
<li><a class="reference internal" href="#">5.10. Serve</a><ul>
<li><a class="reference internal" href="#from-command-line">5.10.1. From command line</a></li>

  <h4>Previous topic</h4>
  <p class="topless"><a href="sync.html"
                        title="previous chapter">5.9. Synchronize</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="guess.html"
                        title="next chapter">5.11. Detect Renames</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/serve.txt"
           rel="nofollow">Show Source</a></li>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
<script type="text/javascript">$('#searchbox').show(0);</script>
      <div class="clearer"></div>
    <div class="related">
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="guess.html" title="5.11. Detect Renames"
             >next</a> |</li>
        <li class="right" >
          <a href="sync.html" title="5.9. Synchronize"
             >previous</a> |</li>
        <li><a href="index.html">TortoiseHg 2.4.0 documentation</a> &raquo;</li>
          <li><a href="daily.html" >5. TortoiseHg in daily use</a> &raquo;</li> 
    <div class="footer">
        &copy; Copyright 2012, Steve Borho and others.
      Created using <a href="">Sphinx</a> 1.1.3.