/ thg / manual / 2.4 / explorer.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.2. Windows Explorer Integration &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.3. GNOME desktop integration" href="nautilus.html" />
    <link rel="prev" title="5.1. Common Features" href="common.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="nautilus.html" title="5.3. GNOME desktop integration"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="common.html" title="5.1. Common Features"
             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-explorer">
<span id="windows-explorer-integration"></span><h1>5.2. Windows Explorer Integration<a class="headerlink" href="#module-explorer" title="Permalink to this headline"></a></h1>
<div class="section" id="context-menus">
<h2>5.2.1. Context Menus<a class="headerlink" href="#context-menus" title="Permalink to this headline"></a></h2>
<p>TortoiseHg commands may be accessed via the context menu of Explorer
windows and other applications which use the standard File/Open dialogs.
Here is the context menu for a revisioned folder:</p>
<div class="figure">
<img alt="Context menu" src="_images/cmenu-nofiles.png" />
<p class="caption">Context menu for a folder under Mercurial revision control</p>
<p>And here is the context menu for selected files or folders:</p>
<div class="figure">
<img alt="Context menu" src="_images/cmenu-files.png" />
<p class="caption">Context menu for file or folder selection</p>
<p>TortoiseHg provides dialogs for the most regularly used Mercurial
commands.  Less frequently used and newly added Mercurial commands
may be accessed from the CLI (command line interface) through
<tt class="file docutils literal"><span class="pre">cmd.exe</span></tt> on Windows.</p>
<div class="section" id="overlay-icons">
<h2>5.2.2. Overlay Icons<a class="headerlink" href="#overlay-icons" title="Permalink to this headline"></a></h2>
<p>TortoiseHg provides visual representation of the file status via overlay
icons in the MS-Explorer windows. This is similar to those that found on
other Tortoise client, such as TortoiseCVS and TortoiseSVN.</p>
<p>TortoiseHg shares the overlay icons with TortoiseSVN (version 1.5.x or
later) and the other &#8220;Tortoise&#8221; projects via the use of TortoiseOverlays
(another project created by TortoiseSVN team).</p>
<div class="figure">
<img alt="Overlay icons" src="_images/overlayicons.png" />
<p class="caption">Overlay icons in Icons view (XP)</p>
<p>The context menu has an <em class="guilabel">Update Icons</em> option which forces
TortoiseHg to refresh the icons in the currently browsed repository or
directory of repositories. The taskbar icon will turn green and the
directory icons will turn into question marks while this refresh is in
<div class="section" id="shell-configuration">
<h2>5.2.3. Shell Configuration<a class="headerlink" href="#shell-configuration" title="Permalink to this headline"></a></h2>
<p>The overlay handler and context menus are configurable.  From any folder
background (even the desktop), right click and select
<em class="menuselection">TortoiseHg ‣ Explorer Extension Settings</em>. This opens the
TortoiseHg Shell Configuration dialog.</p>
<p>On the tab &#8220;Context Menu&#8221; you can promote individual menu options to the
top level menu.</p>
<div class="figure">
<img alt="Shell Configuration dialog, Context Menu tab" src="_images/shell-config-cmenu.png" />
<p class="caption">Shell Configuration Dialog, Context Menu tab</p>
<p>On the &#8220;Icons&#8221; tab you configure settings related to the overlay icons and the
icon of the &#8220;Overlay Icons Server&#8221; in the taskbar (in the notification area of
<div class="figure">
<img alt="Shell Configuration dialog, Icons tab" src="_images/shell-config-icons.png" />
<p class="caption">Shell Configuration Dialog, Icons tab</p>
<dl class="docutils">
<dt><em class="guilabel">Enable overlays:</em></dt>
<dd>If checked, overlay icons are shown on folders and files in the
working directory (woking copy) of Mercurial repositories.
(Default: checked)</dd>
<dt><em class="guilabel">Local disks only:</em></dt>
<dd>If checked, overlay icons are only shown for volumes on local disks, not
on network shares. Scanning for Mercurial repositories over the network
may result in high latency in the user interface of explorer. Check this
option if browsing network shares becomes too slow and/or you do not need
overlay icons on non-local volumes.
(Default: not checked)</dd>
<dt><em class="guilabel">Enabled Overlay Handlers:</em></dt>
<dd>These (per user) settings provide the possibility to disable overlay
icon handlers in the shared TortoiseOverlays component.
The TortoiseOverlays component is shared by all Tortoises (TortoiseHg,
TortoiseSVN, etc), with the goal to avoid registering too many icon slots,
by using a common set of icons slots for all Tortoises (thus using the
same set of icons for all Tortoises).
The total number of overlay slots available on Windows is fairly limited and
depends on the exact Windows version. For example, on a pristine install
of Windows 7, there are only 8 free overlay handler slots available.
This section allows to disable certain non-essential overlay
handlers, to reduce icon handler slot consumption by the TortoiseOverlays
component. Unchecking handlers in this section increases the chances that
important handlers like &#8220;Normal&#8221; (green checkmark) or &#8220;Modifed&#8221; (red
exclamation mark) will still get an icon slot, even if there are too many
handlers registered on a computer.
Unchecking handlers that are not used by TortoiseHg (that is: Locked,
Readonly, Ignored, Deleted) is highly recommended, if you know that no
other Tortoises (e.g. TortoiseSVN) uses them.
Make sure the &#8220;Added&#8221; and &#8220;Unversioned&#8221; handlers are enabled, as these
are used by TortoiseHg.
(Default: all checked)</dd>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">The &#8220;Enabled Overlay Handlers&#8221; settings affect all Tortoises for a user.
A logoff/login is required to make changes in that section effective.</p>
<dl class="docutils">
<dt><em class="guilabel">Taskbar:</em></dt>
<dd>Checkmark &#8220;Show Icon&#8221; to show the icon of the Overlay Icon Server in the
taskbar in the notification area. &#8220;Highlight Icon&#8221; highlights that icon
using a light green color while the icon server is busy updating cache files
in the repository (files <tt class="file docutils literal"><span class="pre">.hg\dirstate</span></tt> and <tt class="file docutils literal"><span class="pre">.hg\thgstatus</span></tt>).
(Default: both checked)</dd>
<p>One can selectively disable overlay icons in a specific repository by
editing the <tt class="file docutils literal"><span class="pre">.hg\thgstatus</span></tt> file inside the repository and
replacing its contents with a single line containing:</p>
<div class="highlight-python"><pre>@@noicons</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.2. Windows Explorer Integration</a><ul>
<li><a class="reference internal" href="#context-menus">5.2.1. Context Menus</a></li>
<li><a class="reference internal" href="#overlay-icons">5.2.2. Overlay Icons</a></li>
<li><a class="reference internal" href="#shell-configuration">5.2.3. Shell Configuration</a></li>

  <h4>Previous topic</h4>
  <p class="topless"><a href="common.html"
                        title="previous chapter">5.1. Common Features</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="nautilus.html"
                        title="next chapter">5.3. GNOME desktop integration</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/explorer.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="nautilus.html" title="5.3. GNOME desktop integration"
             >next</a> |</li>
        <li class="right" >
          <a href="common.html" title="5.1. Common Features"
             >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.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.