<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 28 Sep 2012, at 5:17 PM, Juan Pablo Carbajal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div># HG changeset patch<br># User Juan Pablo Carbajal (desktop) <<a href="mailto:carbajal@ifi.uzh.ch">carbajal@ifi.uzh.ch</a>><br># Date 1348870138 -7200<br># Node ID c94681d38ad1d8c4900b2046c427c4fceea6d12e<br># Parent  5c89e7fa5bc20597080494aea43a09903e9e7a6a<br>help: updated text in the config.txt file in reference to the [paths] section of hgrc, added example of alias for a local path<br></div></blockquote><div><br></div><div>Right format, but too long. Try something like:</div><div><br></div><div>help: add example of paths other than default in hgrc</div><br><blockquote type="cite"><div>diff -r 5c89e7fa5bc2 -r c94681d38ad1 mercurial/help/config.txt<br>--- a/mercurial/help/config.txt<span class="Apple-tab-span" style="white-space:pre">        </span>Thu Sep 20 19:02:47 2012 +0200<br>+++ b/mercurial/help/config.txt<span class="Apple-tab-span" style="white-space:pre">     </span>Sat Sep 29 00:08:58 2012 +0200<br>@@ -604,9 +604,9 @@<br> ``post-<command>``<br>   Run after successful invocations of the associated command. The<br>   contents of the command line are passed as ``$HG_ARGS`` and the result<br>-  code in ``$HG_RESULT``. Parsed command line arguments are passed as <br>+  code in ``$HG_RESULT``. Parsed command line arguments are passed as<br>   ``$HG_PATS`` and ``$HG_OPTS``. These contain string representations of<br>-  the python data internally passed to <command>. ``$HG_OPTS`` is a <br>+  the python data internally passed to <command>. ``$HG_OPTS`` is a<br></div></blockquote><div><br></div><div>As Matt mentioned, chomping the trailing spaces here isn't the purpose of your patch, so you should coax your editor into leaving them as-is (or use the record extension to leave them out of your commit). I don't think the trailing spaces are meaningful to rST, so you could send a separate patch removing them if you were so inclined.</div><br><blockquote type="cite"><div>   dictionary of options (with unspecified options set to their defaults).<br>   ``$HG_PATS`` is a list of arguments. Hook failure is ignored.<br><br>@@ -616,7 +616,7 @@<br>   are passed as ``$HG_PATS`` and ``$HG_OPTS``. These contain string<br>   representations of the data internally passed to <command>. ``$HG_OPTS``<br>   is a  dictionary of options (with unspecified options set to their<br>-  defaults). ``$HG_PATS`` is a list of arguments. If the hook returns <br>+  defaults). ``$HG_PATS`` is a list of arguments. If the hook returns<br>   failure, the command doesn't execute and Mercurial returns the failure<br>   code.<br><br>@@ -923,6 +923,17 @@<br>     Optional. Directory or URL to use when pushing if no destination<br>     is specified.<br><br>+Custom paths can be defined by assigning the path to a name that later can be<br>+used from the command line. Example::<br>+<br>+    [paths]<br>+    default = default_path<br></div></blockquote><div><br></div><div>I think this example 'default' line is more confusing than helpful. You could just leave it out of the snippet.</div><br><blockquote type="cite"><div>+    local = <a href="ssh://server.local//path/to/repo">ssh://server.local//path/to/repo</a><br></div></blockquote><div><br></div><div>An http: url would probably be the clearest.</div><br><blockquote type="cite"><div>+<br>+To push to the path defined in ``local`` use::<br></div></blockquote><div><br></div><div>'use' can be struck here -- it's unclear whether it's a noun or a verb, and it's not needed.</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和<br>Kevin R. Bullock</span>
</div>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br></span></div><blockquote type="cite"><div>+<br>+    hg push local<br>+<br> ``phases``<br> ----------<br><br>_______________________________________________<br>Mercurial-devel mailing list<br><a href="mailto:Mercurial-devel@selenic.com">Mercurial-devel@selenic.com</a><br>http://selenic.com/mailman/listinfo/mercurial-devel<br></div></blockquote></div><br></body></html>