b698f1159c04

Add the hg-prompt docs.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 18 Nov 2009 20:48:00 -0500
parents
children d72a55aed48f
branches/tags (none)
files hg-prompt/documentation/index.html hg-prompt/documentation/keywords.html hg-prompt/documentation/list.html hg-prompt/documentation/usage.html hg-prompt/index.html hg-prompt/installation.html hg-prompt/list.html hg-prompt/media/css/index.html hg-prompt/media/css/layout.css hg-prompt/media/css/list.html hg-prompt/media/css/pygments.css hg-prompt/media/css/reset.css hg-prompt/media/css/typography.css hg-prompt/media/index.html hg-prompt/media/list.html hg-prompt/quickstart.html

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/documentation/index.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » Documentation
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  documentation
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1 id="documentation">Documentation</h1>
+<h2 id="usagedocumentationusage"><a href="/documentation/usage">Usage</a></h2>
+<p>How the <code>hg prompt</code> command can be used.</p>
+<h2 id="keywordsdocumentationkeywords"><a href="/documentation/keywords">Keywords</a></h2>
+<p>Keywords available to use with the command.</p>
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/documentation/keywords.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,182 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » Keywords
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  <a href="/documentation/">documentation</a> &#187;
+                
+              
+                
+                  keywords
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1 id="keywords">Keywords</h1>
+<p>There a number of keywords available.  If you have any suggestions for more please <a href="http://bitbucket.org/sjl/hg-prompt/issues">let me know</a>.</p>
+<p>Some of the keywords support filters.  These filters can be combined when it makes sense.  If in doubt, try it!</p>
+<div class="toc">
+<ul>
+<li><a href="#keywords">Keywords</a><ul>
+<li><a href="#bookmark">bookmark</a></li>
+<li><a href="#branch">branch</a></li>
+<li><a href="#node">node</a></li>
+<li><a href="#patch">patch</a></li>
+<li><a href="#rev">rev</a></li>
+<li><a href="#root">root</a></li>
+<li><a href="#status">status</a></li>
+<li><a href="#tags">tags</a></li>
+<li><a href="#task">task</a></li>
+<li><a href="#tip">tip</a></li>
+<li><a href="#update">update</a></li>
+</ul>
+</li>
+</ul>
+</div>
+<h2 id="bookmark">bookmark</h2>
+<dl>
+<dd>Display the current bookmark (requires the <a href="http://mercurial.selenic.com/wiki/BookmarksExtension">bookmarks</a> extension).</dd>
+</dl>
+<h2 id="branch">branch</h2>
+<dl>
+<dd>Display the current branch.</dd>
+</dl>
+<h2 id="node">node</h2>
+<dl>
+<dd>
+<p>Display the (full) changeset hash of the current parent.</p>
+<dl>
+<dt>|short</dt>
+<dd>Display the hash as the short, 12-character form.</dd>
+<dt>|merge</dt>
+<dd>Display the hash of the changeset you're merging with.</dd>
+</dl>
+</dd>
+</dl>
+<h2 id="patch">patch</h2>
+<dl>
+<dd>
+<p>Display the topmost currently-applied patch (requires the <a href="http://mercurial.selenic.com/wiki/MqExtension">mq</a>
+extension).</p>
+<dl>
+<dt>|count</dt>
+<dd>Display the number of patches in the queue.</dd>
+<dt>|applied</dt>
+<dd>Display the number of currently applied patches in the queue.</dd>
+<dt>|unapplied</dt>
+<dd>Display the number of currently unapplied patches in the queue.</dd>
+</dl>
+</dd>
+</dl>
+<h2 id="rev">rev</h2>
+<dl>
+<dd>
+<p>Display the repository-local changeset number of the current parent.</p>
+<dl>
+<dt>|merge</dt>
+<dd>Display the repository-local changeset number of the changeset you're
+merging with.</dd>
+</dl>
+</dd>
+</dl>
+<h2 id="root">root</h2>
+<dl>
+<dd>
+<p>Display the full path to the root of the current repository, without a 
+trailing slash.</p>
+<dl>
+<dt>|basename</dt>
+<dd>Display the directory name of the root of the current repository. For 
+example, if the repository is in <code>/home/u/myrepo</code> then this keyword
+would expand to <code>myrepo</code>.</dd>
+</dl>
+</dd>
+</dl>
+<h2 id="status">status</h2>
+<dl>
+<dd>
+<p>Display <code>!</code> if the repository has any changed/added/removed files, 
+otherwise <code>?</code> if it has any untracked (but not ignored) files, otherwise 
+nothing.</p>
+<dl>
+<dt>|modified</dt>
+<dd>Display <code>!</code> if the current repository contains files that have been 
+modified, added, removed, or deleted, otherwise nothing.</dd>
+<dt>|unknown</dt>
+<dd>Display <code>?</code> if the current repository contains untracked files, 
+otherwise nothing.</dd>
+</dl>
+</dd>
+</dl>
+<h2 id="tags">tags</h2>
+<dl>
+<dd>
+<p>Display the tags of the current parent, separated by a space.</p>
+<dl>
+<dt>|SEP</dt>
+<dd>Display the tags of the current parent, separated by <code>SEP</code>.</dd>
+</dl>
+</dd>
+</dl>
+<h2 id="task">task</h2>
+<dl>
+<dd>Display the current task (requires the <a href="http://bitbucket.org/alu/hgtasks/wiki/Home">tasks</a> extension).</dd>
+</dl>
+<h2 id="tip">tip</h2>
+<dl>
+<dd>
+<p>Display the repository-local changeset number of the current tip.</p>
+<dl>
+<dt>|node</dt>
+<dd>Display the (full) changeset hash of the current tip.</dd>
+<dt>|short</dt>
+<dd>Display a short form of the changeset hash of the current tip (must be 
+used with the <strong>|node</strong> filter)</dd>
+</dl>
+</dd>
+</dl>
+<h2 id="update">update</h2>
+<dl>
+<dd>Display <code>^</code> if the current parent is not the tip of the current branch, 
+otherwise nothing.  In effect, this lets you see if running <code>hg update</code> 
+would do something.</dd>
+</dl>
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/documentation/list.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » ls /documentation
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  <a href="/documentation/">documentation</a> &#187;
+                
+              
+                
+                  <span class="list-crumb">list</span>
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1><code>ls /documentation</code></h1>
+
+  
+
+  
+  <h2>Pages</h2>
+
+  <table id="pages">
+    
+      <tr>
+        <td class="size">5K</td>
+        <td class="name">
+          <a href="/documentation/keywords" title="Keywords">
+            Keywords
+          </a>
+        </td>
+      </tr>
+    
+      <tr>
+        <td class="size">4K</td>
+        <td class="name">
+          <a href="/documentation/usage" title="Usage">
+            Usage
+          </a>
+        </td>
+      </tr>
+    
+  </table>
+  
+
+  
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/documentation/usage.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » Usage
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  <a href="/documentation/">documentation</a> &#187;
+                
+              
+                
+                  usage
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1 id="usage">Usage</h1>
+<p>The <code>hg prompt</code> command takes a single string as an argument and outputs it.  Here's a simple (and useless) example:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hg</span> <span class="n">prompt</span> <span class="s">&quot;test&quot;</span>
+<span class="n">test</span>
+</pre></div>
+
+
+<p>Keywords in curly braces can be used to output repository information:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hg</span> <span class="n">prompt</span> <span class="s">&quot;currently on {branch}&quot;</span>
+<span class="n">currently</span> <span class="n">on</span> <span class="n">default</span>
+</pre></div>
+
+
+<p>Keywords also have an extended form:</p>
+<div class="codehilite"><pre><span class="p">{</span><span class="n">optional</span> <span class="n">text</span><span class="p">{</span><span class="n">branch</span><span class="p">}</span><span class="n">more</span> <span class="n">optional</span> <span class="n">text</span><span class="p">}</span>
+</pre></div>
+
+
+<p>This form will output the text and the expanded keyword <strong>only</strong> if the keyword successfully expands.  This can be useful for displaying extra text only if it's applicable:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hg</span> <span class="n">prompt</span> <span class="s">&quot;currently on {branch} and at {bookmark}&quot;</span>
+<span class="n">currently</span> <span class="n">on</span> <span class="n">branch</span> <span class="n">default</span> <span class="ow">and</span> <span class="n">at</span>
+
+<span class="nv">$</span> <span class="nv">hg</span> <span class="n">prompt</span> <span class="s">&quot;currently on {branch} {and at {bookmark}}&quot;</span>
+<span class="n">currently</span> <span class="n">on</span> <span class="n">branch</span> <span class="n">default</span>
+
+<span class="nv">$</span> <span class="nv">hg</span> <span class="n">bookmark</span> <span class="k">my</span><span class="o">-</span><span class="n">book</span>
+
+<span class="nv">$</span> <span class="nv">hg</span> <span class="n">prompt</span> <span class="s">&quot;currently on {branch} {and at {bookmark}}&quot;</span>
+<span class="n">currently</span> <span class="n">on</span> <span class="n">branch</span> <span class="n">default</span> <span class="ow">and</span> <span class="n">at</span> <span class="k">my</span><span class="o">-</span><span class="n">book</span>
+</pre></div>
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/index.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » hg-prompt
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  index
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1 id="hg-prompt">hg-prompt</h1>
+<p><code>hg-prompt</code> is a Mercurial extension that adds an 'hg prompt' command to Mercurial for viewing repository information.  It's designed to be used in a shell prompt.</p>
+<h2 id="installation"><a href="/installation/">Installation</a></h2>
+<h2 id="quick-start"><a href="/quickstart/">Quick Start</a></h2>
+<h2 id="full-documentation"><a href="/documentation/">Full Documentation</a></h2>
+<h2 id="screenshot">Screenshot</h2>
+<p><img alt="My bash prompt while using hg-prompt." src="http://stevelosh.com/site-media/storage/projects/2009-06-19-hg-prompt/hg-prompt.png" title="My bash prompt while using hg-prompt." /></p>
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/installation.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » Installation
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  installation
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1 id="installation">Installation</h1>
+<p>Installing <code>hg-prompt</code> requires <a href="http://python.org/">Python</a> 2.5+ and (obviously) Mercurial.</p>
+<p>First, clone the repository:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hg</span> <span class="n">clone</span> <span class="n">http:</span><span class="sr">//</span><span class="n">bitbucket</span><span class="o">.</span><span class="n">org</span><span class="sr">/sjl/</span><span class="n">hg</span><span class="o">-</span><span class="n">prompt</span><span class="o">/</span>
+</pre></div>
+
+
+<p>Edit the <code>[extensions]</code> section in your <code>~/.hgrc</code> file:</p>
+<div class="codehilite"><pre><span class="k">[extensions]</span>
+<span class="na">prompt</span> <span class="o">=</span> <span class="s">(path to)/hg-prompt/prompt.py</span>
+</pre></div>
+
+
+<p>Make sure everything is working:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hg</span> <span class="n">prompt</span> <span class="s">&#39;test&#39;</span>
+<span class="n">test</span>
+</pre></div>
+
+
+<p>Take a look at the <a href="/quickstart/">Quick Start</a> guide to learn how to put some useful information into your shell prompt.</p>
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/list.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » ls /
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  <span class="list-crumb">list</span>
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1><code>ls /</code></h1>
+
+  
+  <h2>Directories</h2>
+
+  <table id="subdirs">
+    
+      <tr>
+        <td class="name">
+          <a class="dirlink" href="/documentation/">
+            documentation/
+          </a>
+        </td>
+      </tr>
+    
+      <tr>
+        <td class="name">
+          <a class="dirlink" href="/media/">
+            media/
+          </a>
+        </td>
+      </tr>
+    
+  </table>
+  
+
+  
+  <h2>Pages</h2>
+
+  <table id="pages">
+    
+      <tr>
+        <td class="size">3K</td>
+        <td class="name">
+          <a href="/installation" title="Installation">
+            Installation
+          </a>
+        </td>
+      </tr>
+    
+      <tr>
+        <td class="size">5K</td>
+        <td class="name">
+          <a href="/quickstart" title="Quick Start">
+            Quick Start
+          </a>
+        </td>
+      </tr>
+    
+  </table>
+  
+
+  
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/media/css/index.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » ls /media/css
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  <a href="/media/">media</a> &#187;
+                
+              
+                
+                  <a href="/media/css/">css</a> &#187;
+                
+              
+                
+                  <span class="list-crumb">list</span>
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1><code>ls /media/css</code></h1>
+
+  
+
+  
+
+  
+  <h2>Files</h2>
+
+  <table id="files">
+    
+      <tr>
+        <td class="size">2K</td>
+        <td class="name">
+          <a href="/media/css/layout.css">
+            <code>layout.css</code>
+          </a>
+        </td>
+      </tr>
+    
+      <tr>
+        <td class="size">3K</td>
+        <td class="name">
+          <a href="/media/css/pygments.css">
+            <code>pygments.css</code>
+          </a>
+        </td>
+      </tr>
+    
+      <tr>
+        <td class="size">940B</td>
+        <td class="name">
+          <a href="/media/css/reset.css">
+            <code>reset.css</code>
+          </a>
+        </td>
+      </tr>
+    
+      <tr>
+        <td class="size">1K</td>
+        <td class="name">
+          <a href="/media/css/typography.css">
+            <code>typography.css</code>
+          </a>
+        </td>
+      </tr>
+    
+  </table>
+  
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/media/css/layout.css	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,168 @@
+body, html {
+	background-color: #f6f6f6;
+	margin: 0;
+	padding: 0;
+}
+
+div#breadcrumbs {
+	border-bottom: 4px dashed #f6f6f6;
+	margin: 0 -1.2em;
+	padding: 0.3em 1.4em 0.3em 1.4em;
+}
+
+div#breadcrumbs p {
+	margin-bottom: 0.2em;
+}
+
+div#content {
+	background-color: #fff;
+	height: 100%;
+	margin: 0 auto;
+	overflow: hidden;
+	padding: 0 1.2em 1.2em 1.2em;
+	width: 700px;
+}
+
+h1 {
+	margin: 0.3em 0;
+	padding: 0.1em 0;
+}
+
+h2, h3, h4, h5, h6 {
+	margin-top: 1em;
+	margin-bottom: 0.4em;
+}
+
+p, ul, blockquote {
+	line-height: 1.8em;
+	margin-top: 0;
+	margin-bottom: 1em;
+}
+
+p#footer {
+	border-top: 1px solid #999;
+	font-size: 0.7em;
+	margin-bottom: 0;
+	padding: 0.7em 0;
+	text-align: center;
+}
+
+ul {
+	padding-left: 1.5em;
+}
+
+ul li {
+	list-style-type: disc;
+	margin-left: 1.5em;
+	margin-top: 0.4em;
+}
+
+code {
+	background-color: #f6f6f6;
+	border: 1px solid #999;
+	border-left: none;
+	border-right: none;
+	padding-left: 2px;
+	padding-right: 2px;
+	white-space: nowrap;
+}
+
+pre code {
+	border: none;
+	padding: 0;
+	background: none;
+	white-space: pre-wrap;
+}
+
+a code {
+	background: none;
+	border: none;
+	margin: 0;
+	padding: 0;
+	text-decoration: inherit;
+}
+
+a.code {
+	background-color: #3f3f3f;
+}
+
+dt {
+	font-weight: bold;
+	margin-top: 1em;
+}
+
+dd {
+	line-height: 1.8em;
+	margin-left: 1.5em;
+}
+
+blockquote p {
+	margin: 0;
+}
+
+table {
+	margin: 1em;
+}
+
+table thead {
+	background-color: #f6f6f6;
+}
+
+table thead th {
+	border: 1px solid #999;
+	padding: 0.5em 1em;
+}
+
+table tbody tr td {
+	border: 1px solid #999;
+	padding: 0.5em 1em;
+}
+
+pre, blockquote, table.codehilitetable {
+	background-color: #f6f6f6;
+	border: 1px solid #999;
+	border-left: none;
+	border-right: none;
+	display: block;
+	line-height: 1.5em;
+	margin-left: 1.2em;
+	margin-right: 1em;
+	padding: 0.5em;
+	padding-left: 1em;
+}
+
+pre, table.codehilitetable {
+	margin-bottom: 1em;
+}
+
+table.codehilitetable div.linenodiv {
+	border-right: 1px solid #ccc;
+	margin-right: 1em;
+	padding-right: 1em;
+}
+
+table.codehilitetable pre {
+	background: none;
+	border: none;
+	margin: 0;
+	padding: 0;
+}
+
+table#pages tr, table#subdirs tr, table#files tr {
+	border-top: 1px solid #999;
+	border-bottom: 1px solid #999;
+}
+
+table tr td.name a {
+	display: block;
+	padding: 0.5em 1em;
+}
+
+table tr td.name a:hover {
+	background-color: #f6f6f6;
+}
+
+table tr td.size {
+	padding: 0.5em 1em;
+	width:  40px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/media/css/list.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » ls /media/css
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  <a href="/media/">media</a> &#187;
+                
+              
+                
+                  <a href="/media/css/">css</a> &#187;
+                
+              
+                
+                  <span class="list-crumb">list</span>
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1><code>ls /media/css</code></h1>
+
+  
+
+  
+
+  
+  <h2>Files</h2>
+
+  <table id="files">
+    
+      <tr>
+        <td class="size">2K</td>
+        <td class="name">
+          <a href="/media/css/layout.css">
+            <code>layout.css</code>
+          </a>
+        </td>
+      </tr>
+    
+      <tr>
+        <td class="size">3K</td>
+        <td class="name">
+          <a href="/media/css/pygments.css">
+            <code>pygments.css</code>
+          </a>
+        </td>
+      </tr>
+    
+      <tr>
+        <td class="size">940B</td>
+        <td class="name">
+          <a href="/media/css/reset.css">
+            <code>reset.css</code>
+          </a>
+        </td>
+      </tr>
+    
+      <tr>
+        <td class="size">1K</td>
+        <td class="name">
+          <a href="/media/css/typography.css">
+            <code>typography.css</code>
+          </a>
+        </td>
+      </tr>
+    
+  </table>
+  
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/media/css/pygments.css	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,61 @@
+.hll { background-color: #ffffcc }
+.c { color: #808080 } /* Comment */
+.err { color: #F00000; background-color: #F0A0A0 } /* Error */
+.k { color: #008000; font-weight: bold } /* Keyword */
+.o { color: #303030 } /* Operator */
+.cm { color: #808080 } /* Comment.Multiline */
+.cp { color: #507090 } /* Comment.Preproc */
+.c1 { color: #808080 } /* Comment.Single */
+.cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.gd { color: #A00000 } /* Generic.Deleted */
+.ge { font-style: italic } /* Generic.Emph */
+.gr { color: #FF0000 } /* Generic.Error */
+.gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.gi { color: #00A000 } /* Generic.Inserted */
+.go { color: #808080 } /* Generic.Output */
+.gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.gt { color: #0040D0 } /* Generic.Traceback */
+.kc { color: #008000; font-weight: bold } /* Keyword.Constant */
+.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */
+.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #303090; font-weight: bold } /* Keyword.Type */
+.m { color: #6000E0; font-weight: bold } /* Literal.Number */
+.s { background-color: #fff0f0 } /* Literal.String */
+.na { color: #0000C0 } /* Name.Attribute */
+.nb { color: #007020 } /* Name.Builtin */
+.nc { color: #B00060; font-weight: bold } /* Name.Class */
+.no { color: #003060; font-weight: bold } /* Name.Constant */
+.nd { color: #505050; font-weight: bold } /* Name.Decorator */
+.ni { color: #800000; font-weight: bold } /* Name.Entity */
+.ne { color: #F00000; font-weight: bold } /* Name.Exception */
+.nf { color: #0060B0; font-weight: bold } /* Name.Function */
+.nl { color: #907000; font-weight: bold } /* Name.Label */
+.nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.nt { color: #007000 } /* Name.Tag */
+.nv { color: #906030 } /* Name.Variable */
+.ow { color: #000000; font-weight: bold } /* Operator.Word */
+.w { color: #bbbbbb } /* Text.Whitespace */
+.mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */
+.mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */
+.mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */
+.mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */
+.sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.sc { color: #0040D0 } /* Literal.String.Char */
+.sd { color: #D04020 } /* Literal.String.Doc */
+.s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.si { background-color: #e0e0e0 } /* Literal.String.Interpol */
+.sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */
+.sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.ss { color: #A06000 } /* Literal.String.Symbol */
+.bp { color: #007020 } /* Name.Builtin.Pseudo */
+.vc { color: #306090 } /* Name.Variable.Class */
+.vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */
+.vi { color: #3030B0 } /* Name.Variable.Instance */
+.il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/media/css/reset.css	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2009, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 2.7.0
+*/
+html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/media/css/typography.css	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,94 @@
+html {
+	font-family: "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
+	font-size: 10pt;
+}
+
+h1, h2, h3, h4, h5, h6 {
+	font-weight: bold;
+}
+
+h1 {
+	font-size: 2em;
+}
+
+h2 {
+	font-size: 1.6em;
+}
+
+h3 {
+	font-size: 1.3em;
+}
+
+h4 {
+	font-size: 1.1em;
+	font-weight: bold;
+}
+
+em {
+	font-style: italic;
+}
+
+strong {
+	font-weight: bold;
+}
+
+a {
+	color: #ba0000;
+	text-decoration: none;
+}
+
+a:hover {
+	color: #e34400;
+}
+
+table#files a:hover, table#subdirs a:hover, table#pages a:hover {
+	color: #a00000;
+}
+
+a[href^="http:"] {
+	text-decoration: underline;
+}
+
+p#footer a {
+	text-decoration: none;
+}
+
+p code, ul code, ol code, dl code, blockquote code, tbody code, thead code {
+	font-size: 8pt;
+}
+
+pre, code, tt, table#subdirs tr td.name, table#files tr td.name, table tr td.size {
+	font-family: "DejaVu Sans Mono", "Bitstream Vera Sans Mono", Menlo, Inconsolata, Consolas, Monaco, "Courier New", Courier;
+}
+
+table#subdirs code, table#files code {
+	font-size: 10pt;
+}
+
+table.codehilitetable div.linenodiv {
+	color: #777;
+}
+
+blockquote {
+	color: #222;
+	font-style: italic;
+}
+
+pre {
+	overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
+	white-space: pre-wrap; /* css-3 */
+	white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
+	white-space: -pre-wrap; /* Opera 4-6 */
+	white-space: -o-pre-wrap; /* Opera 7 */
+	/* width: 99%; */
+	word-wrap: break-word; /* Internet Explorer 5.5+ */
+}
+
+table thead th {
+	font-weight: bold;
+}
+
+.list-crumb {
+	color: #777;
+	font-variant: italic;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/media/index.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » ls /media
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  <a href="/media/">media</a> &#187;
+                
+              
+                
+                  <span class="list-crumb">list</span>
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1><code>ls /media</code></h1>
+
+  
+  <h2>Directories</h2>
+
+  <table id="subdirs">
+    
+      <tr>
+        <td class="name">
+          <a class="dirlink" href="/media/css/">
+            css/
+          </a>
+        </td>
+      </tr>
+    
+  </table>
+  
+
+  
+
+  
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/media/list.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » ls /media
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  <a href="/media/">media</a> &#187;
+                
+              
+                
+                  <span class="list-crumb">list</span>
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1><code>ls /media</code></h1>
+
+  
+  <h2>Directories</h2>
+
+  <table id="subdirs">
+    
+      <tr>
+        <td class="name">
+          <a class="dirlink" href="/media/css/">
+            css/
+          </a>
+        </td>
+      </tr>
+    
+  </table>
+  
+
+  
+
+  
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-prompt/quickstart.html	Wed Nov 18 20:48:00 2009 -0500
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
+    
+    <title>
+      hg-prompt » Quick Start
+    </title>
+    
+    <link rel="stylesheet" type="text/css" href="/media/css/reset.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/layout.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/typography.css" media="screen, projection" />
+    <link rel="stylesheet" type="text/css" href="/media/css/pygments.css" media="screen, projection" />
+  </head>
+  
+  <body>
+    <div id="content">
+
+      
+        <div id="breadcrumbs">
+          <p>
+              
+                
+                  <a href="/">index</a> &#187;
+                
+              
+                
+                  quickstart
+                
+              
+          </p>
+        </div> <!-- div#breadcrumbs -->
+      
+      
+      
+  <h1 id="quick-start">Quick Start</h1>
+<p>This guide will get you up and running so you can put some useful information into your shell prompt.</p>
+<p>If you haven't already <a href="/installation">installed</a> it, do that now.</p>
+<h2 id="a-simple-but-useful-prompt">A Simple (But Useful) Prompt</h2>
+<p>Edit your <code>~/.bashrc</code> file to include something like this:</p>
+<div class="codehilite"><pre><span class="n">hg_ps1</span><span class="p">()</span> <span class="p">{</span>
+    <span class="n">hg</span> <span class="n">prompt</span> <span class="s">&quot;{ on {branch}}{ at {bookmark}}{status}&quot;</span> <span class="mi">2</span><span class="o">&gt;</span> <span class="sr">/dev/</span><span class="n">null</span>
+<span class="p">}</span>
+
+<span class="n">export</span> <span class="n">PS1</span><span class="o">=</span><span class="s">&#39;\u at \h in \w$(hg_ps1)\n$ &#39;</span>
+</pre></div>
+
+
+<p><code>source ~/.bashrc</code> after to test it out.  Make sure you're in a Mercurial repository or you won't see anything.  This little prompt will give you something like this:</p>
+<div class="codehilite"><pre><span class="n">steve</span> <span class="n">at</span> <span class="n">myhost</span> <span class="n">in</span> <span class="o">~</span><span class="sr">/src/</span><span class="n">hg</span><span class="o">-</span><span class="n">prompt</span> <span class="n">on</span> <span class="n">default</span> <span class="n">at</span> <span class="n">feature</span><span class="o">-</span><span class="n">bookmark</span><span class="p">?</span>
+<span class="nv">$</span>
+</pre></div>
+
+
+<h2 id="an-advanced-prompt">An Advanced Prompt</h2>
+<p>How about something a little more interesting?</p>
+<div class="codehilite"><pre><span class="n">hg_ps1</span><span class="p">()</span> <span class="p">{</span>
+    <span class="n">hg</span> <span class="n">prompt</span> <span class="s">&quot;{[+{incoming|count}]--&gt;}{root|basename}{/{branch}}{--&gt;[+{outgoing|count}]}{ at {bookmark}}{status}&quot;</span> <span class="mi">2</span><span class="o">&gt;</span> <span class="sr">/dev/</span><span class="n">null</span>
+<span class="p">}</span>
+
+<span class="n">export</span> <span class="n">PS1</span><span class="o">=</span><span class="s">&#39;$(hg_ps1)\n\u at \h in \w\n$ &#39;</span>
+</pre></div>
+
+
+<p>And the result (this example assumes one incoming changeset and two outgoing):</p>
+<div class="codehilite"><pre><span class="p">[</span><span class="o">+</span><span class="mi">1</span><span class="p">]</span><span class="o">--&gt;</span><span class="n">hg</span><span class="o">-</span><span class="n">prompt</span><span class="o">/</span><span class="n">default</span><span class="o">--&gt;</span><span class="p">[</span><span class="o">+</span><span class="mi">2</span><span class="p">]</span> <span class="n">at</span> <span class="n">feature</span><span class="o">-</span><span class="n">bookmark</span>
+<span class="n">steve</span> <span class="n">at</span> <span class="n">myhost</span> <span class="n">in</span> <span class="o">~</span><span class="sr">/src/</span><span class="n">hg</span><span class="o">-</span><span class="n">prompt</span>
+<span class="nv">$</span>
+</pre></div>
+
+
+<h2 id="learn-more">Learn More</h2>
+<p>From here you can take a look at the <a href="/documentation">full documentation</a> to see all the interesting things <code>hg-prompt</code> can do.</p>
+
+    
+      <p id="footer">
+        
+          hg-prompt &mdash;
+        
+        Powered by <a href="http://bitbucket.org/zacharyvoase/markdoc">Markdoc</a>.
+      </p>
+    
+    </div> <!-- div#content -->
+  </body>
+</html>
\ No newline at end of file